🔨 build: up function

This commit is contained in:
punkfairie 2024-03-10 16:06:38 -07:00
parent 9e86149abd
commit cacd49a569
Signed by: punkfairie
GPG key ID: A86AF57F837E320F
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env fish
function tmux_up --description "Update tmux plugins"
~/.config/tmux/plugins/tpm/bin/install_plugins
~/.config/tmux/plugins/tpm/bin/clean_plugins
~/.config/tmux/plugins/tpm/bin/update_plugins all
end

View file

@ -0,0 +1,28 @@
function up --description "Update everything except pacman/yay"
cd $HOME || exit 1
if type -q brew
set_color magenta && echo Homebrew && set_color normal
brew update && brew upgrade
end
if type -q npm
set_color magenta && echo npm && set_color normal
npm up -g
end
if type -q tmux
set_color magenta && echo tmux && set_color normal
tmux_up
end
if type -q fish_update_completions
set_color magenta && echo "fish completions" && set_color normal
fish_update_completions
end
if type -q fisher
set_color magenta && echo fisher && set_color normal
fisher update
end
end