mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-07-17 23:59:57 +00:00
Edited zshrc
This commit is contained in:
14
zshrc
14
zshrc
@ -6,8 +6,6 @@ SAVEHIST=500000
|
|||||||
# bindkeys
|
# bindkeys
|
||||||
bindkey '^[[A' up-line-or-search # up arrow for back-history-search
|
bindkey '^[[A' up-line-or-search # up arrow for back-history-search
|
||||||
bindkey '^[[B' down-line-or-search # down arrow for fwd-history-search
|
bindkey '^[[B' down-line-or-search # down arrow for fwd-history-search
|
||||||
bindkey ';5D' backward-word # ctrl+left
|
|
||||||
bindkey ';5C' forward-word # ctrl+right
|
|
||||||
bindkey '\e[1~' beginning-of-line # home
|
bindkey '\e[1~' beginning-of-line # home
|
||||||
bindkey '\e[2~' overwrite-mode # insert
|
bindkey '\e[2~' overwrite-mode # insert
|
||||||
bindkey '\e[3~' delete-char # del
|
bindkey '\e[3~' delete-char # del
|
||||||
@ -77,6 +75,12 @@ precmd () {
|
|||||||
echo '%{\e[1;37m%}['$col$bat_perc'%{\e[1;37m%}%%]%{\e[0m%}'
|
echo '%{\e[1;37m%}['$col$bat_perc'%{\e[1;37m%}%%]%{\e[0m%}'
|
||||||
}
|
}
|
||||||
RPROMPT=$'%{\e[1;37m%}[%T]%{\e[0m%} '$(batcharge)
|
RPROMPT=$'%{\e[1;37m%}[%T]%{\e[0m%} '$(batcharge)
|
||||||
|
# if [[ $EUID == 0 ]]
|
||||||
|
# then
|
||||||
|
# PROMPT=$'%{\e[1;37m%}# %{\e[1;31m%}%n %{\e[1;37m%}at %{\e[0;31m%}%m %{\e[1;37m%}in %{\e[1;33m%}%~ %{\e[1;37m%}[%D] [%*] '$(batcharge)$'%{\e[1;37m%} [%?]\n%{\e[1;31m%}# %{\e[0m%}'
|
||||||
|
# else
|
||||||
|
# PROMPT=$'%{\e[1;37m%}# %{\e[1;32m%}%n %{\e[1;37m%}at %{\e[0;32m%}%m %{\e[1;37m%}in %{\e[1;33m%}%~ %{\e[1;37m%}[%D] [%*] '$(batcharge)$'%{\e[1;37m%} [%?]\n%{\e[1;32m%}$ %{\e[0m%}'
|
||||||
|
# fi
|
||||||
}
|
}
|
||||||
# right prompt with time
|
# right prompt with time
|
||||||
#RPROMPT=$'%{\e[1;37m%}%T, %D%{\e[0m%}'
|
#RPROMPT=$'%{\e[1;37m%}%T, %D%{\e[0m%}'
|
||||||
@ -87,7 +91,7 @@ alias grep='grep --colour=auto'
|
|||||||
alias top='htop'
|
alias top='htop'
|
||||||
alias chrommsu='chromium --proxy-server=cache.msu:3128'
|
alias chrommsu='chromium --proxy-server=cache.msu:3128'
|
||||||
alias chromtor='chromium --proxy-server="socks://localhost:9050" --incognito'
|
alias chromtor='chromium --proxy-server="socks://localhost:9050" --incognito'
|
||||||
alias chromi2p='chromium --proxy-server="http=http://127.0.0.1:4444;https=https://127.0.0.1:4445" --incognito'
|
alias chromi2p='chromium --proxy-server="http=127.0.0.1:4444;https=127.0.0.1:4445" --incognito'
|
||||||
alias df='df -h'
|
alias df='df -h'
|
||||||
alias du='du -c -h'
|
alias du='du -c -h'
|
||||||
alias su='su -'
|
alias su='su -'
|
||||||
@ -197,6 +201,8 @@ else
|
|||||||
alias dhcpcd='sudo dhcpcd'
|
alias dhcpcd='sudo dhcpcd'
|
||||||
alias journalctl='sudo journalctl'
|
alias journalctl='sudo journalctl'
|
||||||
alias systemctl='sudo systemctl'
|
alias systemctl='sudo systemctl'
|
||||||
|
alias modprobe='sudo modprobe'
|
||||||
|
alias rmmod='sudo rmmod'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# global alias
|
# global alias
|
||||||
@ -223,4 +229,4 @@ hash -d u2=/mnt/usbdev2
|
|||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
# path
|
# path
|
||||||
export PATH="$PATH:$HOME/bin/:/opt/gromacs_old/bin/"
|
export PATH="$PATH:$HOME/bin/:/opt/gromacs_old/bin/:$HOME/bin/namd"
|
||||||
|
Reference in New Issue
Block a user