mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
now running updates only when using tmux without arguments
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
function tmux
|
function tmux
|
||||||
|
if test (count $argv) -eq 0
|
||||||
if type -q omf
|
if type -q omf
|
||||||
# Update Oh My Fish if it installed
|
# Update Oh My Fish if it installed
|
||||||
omf update
|
omf update
|
||||||
@@ -20,7 +21,8 @@ function tmux
|
|||||||
# Clean plugins that are not used anymore
|
# Clean plugins that are not used anymore
|
||||||
~/.tmux/plugins/tpm/bin/update_plugins all
|
~/.tmux/plugins/tpm/bin/update_plugins all
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Execute TMUX
|
# Execute TMUX
|
||||||
/usr/bin/tmux
|
/usr/bin/tmux $argv
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user