commit b03254d19baafe78392b4a93fde6d822eaafe557
parent 84c8610c04c7d7f3a9d7bed3e95b22ce37d67491
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 29 Dec 2018 08:52:11 +0100
Do not ls -a after using a shortcut
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/links/bin/shortcuts b/links/bin/shortcuts
@@ -28,8 +28,8 @@ 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" && ls -a\" \\"}' >> "$shell_shortcuts") \
- >(awk '{print $1, "\"cd " $2 "; and ls -a\" \\"}' >> "$fish_shortcuts") \
+sed "s/#.*$//;/^$/d" "$bmdirs" | tee >(awk '{print $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"