diff options
author | Tom Willemsen | 2012-01-08 16:59:17 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-01-08 16:59:17 +0100 |
commit | 7c4e930ba49f096bde0a2fc6bbc7dd0d0b6b2d6c (patch) | |
tree | 25fc61ec2f322d03f91f5245c513e7c1ae5a0216 /.zsh | |
parent | 76258665e768d61ae8b8d4cd2190d5d65050e45c (diff) | |
download | dotfiles-7c4e930ba49f096bde0a2fc6bbc7dd0d0b6b2d6c.tar.gz dotfiles-7c4e930ba49f096bde0a2fc6bbc7dd0d0b6b2d6c.zip |
ZSH: Move `env' and `line' to separate files
Diffstat (limited to '.zsh')
-rw-r--r-- | .zsh/functions/env | 3 | ||||
-rw-r--r-- | .zsh/functions/line | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.zsh/functions/env b/.zsh/functions/env new file mode 100644 index 0000000..6eb728a --- /dev/null +++ b/.zsh/functions/env @@ -0,0 +1,3 @@ +# -*- mode: shell-script -*- + +/usr/bin/env "$@" | grep -v ^LESS_TERMCAP_ diff --git a/.zsh/functions/line b/.zsh/functions/line new file mode 100644 index 0000000..ed70b29 --- /dev/null +++ b/.zsh/functions/line @@ -0,0 +1,9 @@ +# -*- mode: shell-script -*- + +let width=$(expr $COLUMNS - ${#1} - 2) + +for i in {1..$width}; do + echo -n \\x2d +done + +echo -n " $1" |