Fish functions

This commit is contained in:
2019-04-14 22:39:48 -04:00
parent 4c4f5b43fb
commit 69bb713ff4
16 changed files with 82 additions and 48 deletions

View File

@@ -41,8 +41,8 @@ printf "# vim: filetype=sh\\nalias " > "$aliases"
# Format the key file in the correct syntax and sent it to all configs.
sed "s/\s*#.*$//;/^\s*$/d" "$key_dirs" | tee \
>(awk '{print $1"=\"cd "$2" && ls -a\" \\"}' >> "$aliases") \
>(awk '{print "abbr", $1, "\"cd " $2 "\""}' >> "$fish_abbr") \
>(awk '{print $1"=\"cd "$2" && lsd -a\" \\"}' >> "$aliases") \
>(awk '{print "abbr", $1, "\"cd", $2, "\""}' >> "$fish_abbr") \
| awk '{print "map f"$1, "cd", $2;
print "map t"$1, "tab_new", $2;
print "map m"$1, "shell mv -v %f", $2;