dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 98e9364515cc4d74f97bbb87d419bbafa4d0f935
parent 10274026739ef05a81093a99360209eed2e92bbd
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 15 Jan 2019 10:19:05 +0100

Prefix shortcut aliases with 'g'

Diffstat:
Mlinks/bin/shortcuts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/links/bin/shortcuts b/links/bin/shortcuts @@ -28,7 +28,7 @@ ensure 'source ~/.config/ranger/shortcuts.conf' "$HOME/.config/ranger/rc.conf" #ensure "source $HOME/.config/fish/shortcuts.fish" "$HOME/.config/fish/config.fish" # Format the `bmdirs` file in the correct syntax and sent it to all three configs. -sed "s/#.*$//;/^$/d" "$bmdirs" | tee >(awk '{print $1"=\"cd "$2"\" \\"}' >> "$shell_shortcuts") \ +sed "s/#.*$//;/^$/d" "$bmdirs" | tee >(awk '{print "g"$1"=\"cd "$2"\" \\"}' >> "$shell_shortcuts") \ >(awk '{print $1, "\"cd " $2 "\" \\"}' >> "$fish_shortcuts") \ >(awk '{print "config.bind(\";"$1"\", \"set downloads.location.directory "$2" ;; hint links download\")"}' >> "$qute_shortcuts") \ | awk '{print "map g"$1" cd "$2"\nmap t"$1" tab_new "$2"\nmap m"$1" shell mv -v %s "$2"\nmap Y"$1" shell cp -rv %s "$2}' >> "$ranger_shortcuts"