mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
port upstream changes
https://github.com/LukeSmithxyz/voidrice/pull/1385
This commit is contained in:
parent
78e7045b6e
commit
bb1dc77798
@ -9,7 +9,6 @@ shell_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
|
||||
zsh_named_dirs="${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
|
||||
lf_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/lf/shortcutrc"
|
||||
vim_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/nvim/shortcuts.vim"
|
||||
ranger_shortcuts="/dev/null"
|
||||
qute_shortcuts="/dev/null"
|
||||
fish_shortcuts="/dev/null"
|
||||
vifm_shortcuts="/dev/null"
|
||||
@ -38,12 +37,6 @@ write_dirs() {
|
||||
printf "config.bind(';%s', \"set downloads.location.directory %s ;; hint links download\") \n" \
|
||||
"$shortcut" "$path" \
|
||||
>>"$qute_shortcuts"
|
||||
printf "map g%s cd %s\nmap t%s tab_new %s\nmap m%s shell mv -v %%s %s\nmap Y%s shell cp -rv %%s %s \n" \
|
||||
"$shortcut" "$path" \
|
||||
"$shortcut" "$path" \
|
||||
"$shortcut" "$path" \
|
||||
"$shortcut" "$path" \
|
||||
>>"$ranger_shortcuts"
|
||||
printf "map C%s cd \"%s\"\n" \
|
||||
"$shortcut" "$path" \
|
||||
>>"$lf_shortcuts"
|
||||
@ -71,9 +64,6 @@ write_files() {
|
||||
printf "map %s :e %s<CR> \n" \
|
||||
"$shortcut" "$path" \
|
||||
>>"$vifm_shortcuts"
|
||||
printf "map %s shell \$EDITOR %s \n" \
|
||||
"$shortcut" "$path" \
|
||||
>>"$ranger_shortcuts"
|
||||
printf "map E%s \$\$EDITOR \"%s\" \n" \
|
||||
"$shortcut" "$path" \
|
||||
>>"$lf_shortcuts"
|
||||
@ -89,7 +79,7 @@ filter() {
|
||||
}
|
||||
|
||||
# Remove, prepare files
|
||||
rm -f "$lf_shortcuts" "$ranger_shortcuts" "$qute_shortcuts" "$zsh_named_dirs" "$vim_shortcuts" 2>/dev/null
|
||||
rm -f "$lf_shortcuts" "$qute_shortcuts" "$zsh_named_dirs" "$vim_shortcuts" 2>/dev/null
|
||||
printf "# vim: filetype=sh\\n" >"$fish_shortcuts"
|
||||
printf "# vim: filetype=sh\\nalias " >"$shell_shortcuts"
|
||||
printf "\" vim: filetype=vim\\n" >"$vifm_shortcuts"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user