Added Dotfiles updater
This commit is contained in:
parent
f61d68b994
commit
f95edbd1a0
1 changed files with 9 additions and 0 deletions
9
main
9
main
|
@ -162,6 +162,15 @@ setopt hist_save_no_dups
|
||||||
setopt hist_ignore_dups
|
setopt hist_ignore_dups
|
||||||
setopt hist_find_no_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
|
# Show pfetch if it is enabled and installed
|
||||||
if [ "${SHOW_PFETCH}" = "1" ] && command -v pfetch &> /dev/null
|
if [ "${SHOW_PFETCH}" = "1" ] && command -v pfetch &> /dev/null
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue