Refactor zsh and sh rcs

This commit is contained in:
Marty Oehme 2020-02-02 15:24:04 +01:00
parent 0e6e61c470
commit 52b054a2d2
5 changed files with 37 additions and 104 deletions

View file

@ -52,6 +52,8 @@ if exist git; then
alias gd='git diff'
alias gds='git diff --staged'
alias gi='git ignore'
alias glog='git log --stat'
alias glg='git log --oneline --decorate --graph'
alias glga='git log --oneline --decorate --graph --remotes --all'
@ -66,7 +68,7 @@ if exist git; then
alias grv='git remote -v'
alias grs='git restore --staged'
alias grss='git restore'
alias grs!='git restore'
alias grbi='git rebase -i'
alias grbc='git rebase --continue'
@ -94,9 +96,11 @@ if exist fzf; then
# Display fuzzy-searchable history
alias fzf_history="history | fzf --tac --height 20"
# Fuzzy search packages to install
alias fzf_yay="yay -Slq | fzf -m --preview 'yay -Si {1}' | xargs -ro yay -S"
# Fuzzy uninstall packages
alias fzf_yayrns="yay -Qeq | fzf -m --preview 'yay -Qi {1}' | xargs -ro yay -Rns"
if exist yay; then
alias fzf_yay="yay -Slq | fzf -m --preview 'yay -Si {1}' | xargs -ro yay -S"
# Fuzzy uninstall packages
alias fzf_yayrns="yay -Qeq | fzf -m --preview 'yay -Qi {1}' | xargs -ro yay -Rns"
fi
fi
# vifm
@ -106,5 +110,3 @@ if exist vifm; then
# enable picture preview script
exist vifmrun && alias vifm=vifmrun
fi
unset -f exist

View file

@ -40,5 +40,5 @@ export GOPATH="$HOME/projects/gopath/"
export PATH="$PATH:$GOPATH/bin"
## LANG LOCALE UTF-8
export LC_ALL="en_US.utf-8"
export LANG="en_US.utf-8"
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"