mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
shortening ranger config based on environment variables
This commit is contained in:
@@ -49,6 +49,14 @@ zle -N zle-line-init
|
||||
echo -ne '\e[5 q'
|
||||
preexec() { echo -ne '\e[5 q' ;}
|
||||
|
||||
# starts one or multiple args in background
|
||||
background() {
|
||||
for ((i=2;i<=$#;i++)); do
|
||||
${@[1]} ${@[$i]} &> /dev/null &|
|
||||
done
|
||||
}
|
||||
|
||||
source $HOME/.config/zsh/suffixaliasrc 2>/dev/null # Load suffix aliases
|
||||
[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc" # Load aliases
|
||||
|
||||
# Load command-not-found-handler
|
||||
|
3
.config/zsh/suffixaliasrc
Normal file
3
.config/zsh/suffixaliasrc
Normal file
@@ -0,0 +1,3 @@
|
||||
#/bin/zsh
|
||||
|
||||
alias -s pdf="background $READER"
|
Reference in New Issue
Block a user