aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/.scripts/zsh_aliases_functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/.scripts/zsh_aliases_functions.sh b/scripts/.scripts/zsh_aliases_functions.sh
new file mode 100755
index 0000000..c6ac167
--- /dev/null
+++ b/scripts/.scripts/zsh_aliases_functions.sh
@@ -0,0 +1,6 @@
+# fetch all zsh aliases
+alias | awk -F'[ =]' '{print $1}'
+
+# fetch all zsh functions
+# http://superuser.com/questions/681575/any-way-to-get-list-of-functions-defined-in-zsh-like-alias-command-for-aliases
+#print -l ${(ok)functions}