This commit is contained in:
Vlad Doster 2019-12-31 23:45:09 -05:00
commit 65d7be8658
3 changed files with 7 additions and 16 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
# ranger supports enhanced previews. If the option "use_preview_script"
# is set to True and this file exists, this script will be called and its
# output is displayed in ranger. ANSI color codes are supported.

View File

@ -20,7 +20,7 @@ super + r
super + e
$TERMINAL -e neomutt; pkill -RTMIN+12 $STATUSBAR
super + m
spotify
spotify #$TERMINAL -e spt
super + n
nautilus
super + c

View File

@ -50,22 +50,13 @@ echo -ne '\e[5 q'
# Use beam shape cursor for each new prompt.
preexec() { echo -ne '\e[5 q' ;}
# Use lf to switch directories and bind it to ctrl-o
lfcd () {
tmp="$(mktemp)"
lf -last-dir-path="$tmp" "$@"
if [ -f "$tmp" ]; then
dir="$(cat "$tmp")"
rm -f "$tmp"
if [ -d "$dir" ]; then
if [ "$dir" != "$(pwd)" ]; then
cd "$dir"
fi
fi
ranger() {
if [ -z "$RANGER_LEVEL" ]; then
/usr/bin/ranger "$@"
else
exit
fi
}
bindkey -s '^o' 'lfcd\n' # zsh
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null