1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-25 20:47:45 +01:00

zsh/alias: moved alias to alias config

This commit is contained in:
tiyn 2024-02-23 02:45:00 +01:00
parent 69a8831b5d
commit 1b6be396a6
2 changed files with 3 additions and 7 deletions

View File

@ -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"

View File

@ -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