mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 17:52:26 +00:00
Switch back after update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
# Git pulls latest dotfiles
|
||||
function update-dotfiles() {
|
||||
prevdir=$PWD
|
||||
if [ -d "${HOME}/.dotfiles" ]; then
|
||||
cd $HOME/.dotfiles
|
||||
git pull --rebase --autostash
|
||||
@@ -9,6 +10,7 @@ function update-dotfiles() {
|
||||
cd $HOME/.dotfiles-private
|
||||
git pull --rebase --autostash
|
||||
fi
|
||||
cd $prevdir
|
||||
}
|
||||
|
||||
function add-sshkey() {
|
||||
|
||||
Reference in New Issue
Block a user