1
0
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:
tiynger
2019-10-07 14:37:37 +02:00
parent 7ae11b2a9b
commit 235455281a
4 changed files with 31 additions and 124 deletions

View File

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

View File

@@ -0,0 +1,3 @@
#/bin/zsh
alias -s pdf="background $READER"