summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/zsh/zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/zsh/zshrc b/user/zsh/zshrc
index d843ce2f..dce20aeb 100644
--- a/user/zsh/zshrc
+++ b/user/zsh/zshrc
@@ -21,6 +21,11 @@ dc () {
 }
 compdef '_dispatch docker-compose docker-compose' dc
 
+field () {
+  awk "{ print \$${1:-0} }"
+}
+alias f=field
+
 backward-argument () {
   local WORDCHARS="\!\`~#@$%^&*()-_=+[{]}\|;:,<.>/?\'\""
   zle backward-word