use pywal to color alacritty and vim

This commit is contained in:
2024-05-15 22:27:50 +02:00
parent ebe7002e78
commit bfda0a9e27
41 changed files with 1532 additions and 658 deletions

View File

@@ -1,2 +1,23 @@
alias r=ranger
alias r=ranger_cd
ranger() {
if [ -z "$RANGER_LEVEL" ]; then
/usr/bin/ranger "$@"
else
exit
fi
}
ranger_cd() {
temp_file="$(mktemp -t "ranger_cd.XXXXXXXXXX")"
ranger --choosedir="$temp_file" -- "${@:-$PWD}"
if chosen_dir="$(cat -- "$temp_file")" && [ -n "$chosen_dir" ] && [ "$chosen_dir" != "$PWD" ]; then
cd -- "$chosen_dir"
fi
rm -f -- "$temp_file"
}
if [ "$RANGERCD" ]; then unset RANGERCD && ranger_cd; fi
#$RANGERCD && unset RANGERCD && ranger_cd