diff --git a/.config/fish/config.fish b/.config/fish/config.fish index e46dd8e..ea665d2 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -14,10 +14,15 @@ if status is-interactive fish_clipboard_paste end - function open --description 'Opens a file with xdg-open detached from shell' - xdg-open $argv &>/dev/null & disown + function open --wraps 'xdg-open' + xdg-open &>/dev/null & disown end + function detach --description 'Detach a command from shell' + $argv &>/dev/null & disown + end + + function alacritty --description 'Create new Alacritty window' command alacritty msg create-window $argv end