summary refs log tree commit diff stats
path: root/tag-zsh/config/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'tag-zsh/config/zsh')
-rwxr-xr-xtag-zsh/config/zsh/zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index c78f92b9..b7688921 100755
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -213,7 +213,11 @@ alias df='df -h'
 alias du='du -h'
 alias md='mkdir -p'
 alias rd='rmdir'
-alias 1='head -n1'
+for ((i = 1; i <= 5; i++))
+do
+	alias $i="head -n$i"
+	alias -$i="tail -n$i"
+done
 alias .='source'
 
 ls='\ls'