Skip to content

Instantly share code, notes, and snippets.

@christiantakle
christiantakle / example.bash
Last active August 6, 2018 01:43
bash formatting
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