2024-04-25 00:28:15 +03:00

50 lines
1.1 KiB
Bash
Executable File

#Some plugin intial setup
# Download Znap, if it's not there yet.
[[ -r ~/Repos/znap/znap.zsh ]] ||
git clone --depth 1 -- \
https://github.com/marlonrichert/zsh-snap.git /home/${USER}/Repos/znap
source /home/${USER}/Repos/znap/znap.zsh # Start Znap
znap source marlonrichert/zsh-autocomplete
znap source zshzoo/cd-ls
#Aliases:
alias c="clear"
alias l="ls"
alias st="speedtest"
alias ll="ls --long"
alias la="ls -la"
alias lr="ll --tree"
alias tree="tree -ph"
alias f="find ~/ -name"
alias fs="find / -name"
# GIT aliases
alias gs="git status"
alias gr="git pull --rebase"
alias gri="git rebase --interactive"
alias grc="git rebase --continue"
alias gl="git log"
alias t="tig"
alias ga="git commit --amend"
alias gc="git commit"
alias gaa="git add -A"
alias gp="git push"
alias gb="git branch"
alias gch="git checkout"
alias gchb="gch -b"
alias grp="git pull --rebase && git push"
# Arch specific
alias arch_update="sudo pacman -Syu"
export HISTSIZE=2000
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
setopt hist_ignore_all_dups
#Prompt Settings:
PROMPT="%(?.%F{green}√.%F{red}?%?)%f %B%F{yellow}%1~%f%b %# --> "
c