* more robost dotfile_path

* add 'dfs' 'pls' and 'se'

* debug
This commit is contained in:
2022-05-14 20:26:25 +08:00
committed by GitHub
parent 72b7b60449
commit 7a7526d184
2 changed files with 17 additions and 2 deletions

17
.zshrc2
View File

@@ -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'