Fixes
This commit is contained in:
parent
4268b24186
commit
14b0b4b9bd
21
shells/zshrc
21
shells/zshrc
@ -53,15 +53,7 @@ if [ "$(uname)" != "Darwin" ]; then
|
|||||||
alias matlab='matlab -glnx86'
|
alias matlab='matlab -glnx86'
|
||||||
alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|to\ full|percentage"'
|
alias bat='upower -i /org/freedesktop/UPower/devices/battery_BAT0| grep -E "state|to\ full|percentage"'
|
||||||
fi
|
fi
|
||||||
if test -f /etc/lsb-release; then
|
if test -f /etc/gentoo-release; then
|
||||||
# Ubuntu
|
|
||||||
alias install='sudo apt-get --show-progress install'
|
|
||||||
alias remove='sudo apt-get --show-progress remove'
|
|
||||||
alias update='sudo apt-get update'
|
|
||||||
alias upgrade='sudo apt-get --show-progress upgrade'
|
|
||||||
alias autoremove='sudo apt-get --show-progress autoremove'
|
|
||||||
alias updateall='sudo sh -c "apt-get update;apt-get upgrade -y;apt-get dist-upgrade -y;apt-get autoremove -y"'
|
|
||||||
elif test -f /etc/gentoo-release; then
|
|
||||||
# Gentoo
|
# Gentoo
|
||||||
ins(){
|
ins(){
|
||||||
echo "args: $*"
|
echo "args: $*"
|
||||||
@ -69,6 +61,14 @@ elif test -f /etc/gentoo-release; then
|
|||||||
}
|
}
|
||||||
alias update='cd /usr/portage&&sudo zsh -c "git up&&eix-update";\cd ->/dev/null'
|
alias update='cd /usr/portage&&sudo zsh -c "git up&&eix-update";\cd ->/dev/null'
|
||||||
alias upgrade='sudo emerge --update --newuse --with-bdeps=y --deep --verbose -t -a --keep-going=y @world'
|
alias upgrade='sudo emerge --update --newuse --with-bdeps=y --deep --verbose -t -a --keep-going=y @world'
|
||||||
|
elif test -f /etc/lsb-release; then
|
||||||
|
# Ubuntu
|
||||||
|
alias install='sudo apt-get --show-progress install'
|
||||||
|
alias remove='sudo apt-get --show-progress remove'
|
||||||
|
alias update='sudo apt-get update'
|
||||||
|
alias upgrade='sudo apt-get --show-progress upgrade'
|
||||||
|
alias autoremove='sudo apt-get --show-progress autoremove'
|
||||||
|
alias updateall='sudo sh -c "apt-get update;apt-get upgrade -y;apt-get dist-upgrade -y;apt-get autoremove -y"'
|
||||||
fi
|
fi
|
||||||
alias ..='k ..'
|
alias ..='k ..'
|
||||||
alias ...='k ../..'
|
alias ...='k ../..'
|
||||||
@ -220,7 +220,7 @@ function k(){
|
|||||||
vim "$@"
|
vim "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
source ~/.zsh/*.zsh
|
#source ~/.zsh/*.zsh
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
printf "git-annex..."
|
printf "git-annex..."
|
||||||
antigen bundle Schnouki/git-annex-zsh-completion
|
antigen bundle Schnouki/git-annex-zsh-completion
|
||||||
@ -239,3 +239,4 @@ antigen bundle zsh-users/zsh-syntax-highlighting
|
|||||||
printf "applying..."
|
printf "applying..."
|
||||||
antigen apply
|
antigen apply
|
||||||
echo "done"
|
echo "done"
|
||||||
|
for config (~/.zsh/*.zsh) source $config
|
||||||
|
Loading…
Reference in New Issue
Block a user