🔨 build: up function
This commit is contained in:
parent
9e86149abd
commit
cacd49a569
2 changed files with 35 additions and 0 deletions
7
.config/fish/functions/tmux_up.fish
Normal file
7
.config/fish/functions/tmux_up.fish
Normal 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
|
28
.config/fish/functions/up.fish
Normal file
28
.config/fish/functions/up.fish
Normal 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
|
Loading…
Reference in a new issue