mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Merge branch 'master' of https://github.com/vladdoster/dotfiles
This commit is contained in:
commit
65d7be8658
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
# ranger supports enhanced previews. If the option "use_preview_script"
|
# 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
|
# 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.
|
# output is displayed in ranger. ANSI color codes are supported.
|
||||||
|
|||||||
@ -20,7 +20,7 @@ super + r
|
|||||||
super + e
|
super + e
|
||||||
$TERMINAL -e neomutt; pkill -RTMIN+12 $STATUSBAR
|
$TERMINAL -e neomutt; pkill -RTMIN+12 $STATUSBAR
|
||||||
super + m
|
super + m
|
||||||
spotify
|
spotify #$TERMINAL -e spt
|
||||||
super + n
|
super + n
|
||||||
nautilus
|
nautilus
|
||||||
super + c
|
super + c
|
||||||
|
|||||||
@ -50,22 +50,13 @@ echo -ne '\e[5 q'
|
|||||||
# Use beam shape cursor for each new prompt.
|
# Use beam shape cursor for each new prompt.
|
||||||
preexec() { echo -ne '\e[5 q' ;}
|
preexec() { echo -ne '\e[5 q' ;}
|
||||||
|
|
||||||
# Use lf to switch directories and bind it to ctrl-o
|
ranger() {
|
||||||
lfcd () {
|
if [ -z "$RANGER_LEVEL" ]; then
|
||||||
tmp="$(mktemp)"
|
/usr/bin/ranger "$@"
|
||||||
lf -last-dir-path="$tmp" "$@"
|
else
|
||||||
if [ -f "$tmp" ]; then
|
exit
|
||||||
dir="$(cat "$tmp")"
|
|
||||||
rm -f "$tmp"
|
|
||||||
if [ -d "$dir" ]; then
|
|
||||||
if [ "$dir" != "$(pwd)" ]; then
|
|
||||||
cd "$dir"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
bindkey -s '^o' 'lfcd\n' # zsh
|
|
||||||
|
|
||||||
# Load zsh-syntax-highlighting; should be last.
|
# Load zsh-syntax-highlighting; should be last.
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user