From 53eefc3978001c54f4bd79fc63292b1c603d5d17 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sat, 14 May 2022 19:50:09 +0800 Subject: [PATCH] add 'dfs' 'pls' and 'se' --- .zshrc2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.zshrc2 b/.zshrc2 index d014280..5de1c14 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -61,4 +61,15 @@ antigen apply # end of antigen config # functions -dotfile_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) \ No newline at end of file +dotfile_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +dfs() +{ + if [[$1 == 'update']]; then + (cd "$dotfile_path" && env git pull) + else + echo "unknown command \"$1\". available: update" +} + +# alias +alias "pls"="sudo $(fc -ln -1)" +alias "se"="sudo -sE" \ No newline at end of file