From f95edbd1a0cbfca76abe3070f277dbc9440375d7 Mon Sep 17 00:00:00 2001 From: pauljako <126326487+pauljako@users.noreply.github.com> Date: Sun, 29 Sep 2024 08:41:17 +0200 Subject: [PATCH] Added Dotfiles updater --- main | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main b/main index 862f963..0a726fb 100644 --- a/main +++ b/main @@ -162,6 +162,15 @@ setopt hist_save_no_dups setopt hist_ignore_dups setopt hist_find_no_dups # +# Command to update Dotfiles +update-dotfiles () { + pushd "$HOME/.config/dotfiles" + git pull + oh-my-posh upgrade + popd + echo "Dotfiles updated. You might need to restart your shell with exec zsh." +} +# # Show pfetch if it is enabled and installed if [ "${SHOW_PFETCH}" = "1" ] && command -v pfetch &> /dev/null then