mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-11-23 20:38:16 +08:00
17
.zshrc2
17
.zshrc2
@@ -58,4 +58,19 @@ antigen bundle https://gitee.com/dictxiong/zsh-autosuggestions
|
||||
antigen theme ys
|
||||
# apply
|
||||
antigen apply
|
||||
# end of antigen config
|
||||
# end of antigen config
|
||||
|
||||
# functions
|
||||
export DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
|
||||
dfs()
|
||||
{
|
||||
if [[ $1 == update ]]; then
|
||||
(cd "$DOTFILES" && env git pull)
|
||||
else
|
||||
echo "unknown command \"$1\". available: update"
|
||||
fi
|
||||
}
|
||||
|
||||
# alias
|
||||
alias "pls"='sudo $(fc -ln -1)'
|
||||
alias "se"='sudo -sE'
|
||||
Reference in New Issue
Block a user