Skip to content

Commit

Permalink
port upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnailed committed May 24, 2024
1 parent 78e7045 commit bb1dc77
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .local/bin/shortcuts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit bb1dc77

Please sign in to comment.