Last active
August 6, 2018 01:43
-
-
Save christiantakle/2b5016d53768e575de49ef75d4980c99 to your computer and use it in GitHub Desktop.
bash formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed "/^#/d" "$folders" \ | |
| tee \ | |
>(awk '{print "alias "$1"=\"cd "$2" && ls -a\""}' >> "$shell_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") \ | |
| /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment