diff --git a/.config/aliasrc b/.config/aliasrc index 9b753fd..04e34cc 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -1,5 +1,8 @@ #!/bin/sh +# starting commands in background +background() { for ((i=2;i<=$#;i++)); do; ${@[1]} ${@[$i]} &> /dev/null &| ; done } + # bash alias ":wq"="exit" alias ":q"="exit" diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 521e8b4..f8da70b 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -127,13 +127,6 @@ local paste_widgets=( x11-clip-wrap-widgets copy $copy_widgets x11-clip-wrap-widgets paste $paste_widgets -# starts one or multiple args in background -background() { - for ((i=2;i<=$#;i++)); do - ${@[1]} ${@[$i]} &> /dev/null &| - done -} - [ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" # Load aliases autoload -Uz compinit && compinit