aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxero <x@xero.nu>2015-10-31 01:12:57 -0400
committerxero <x@xero.nu>2015-10-31 01:13:43 -0400
commitc9794fec6f9c9bb5ffbf0666d81bc167cc3273e3 (patch)
tree11ed2f1b6c1f3590f57922ca03bdbeb8cb071c7c
parentea6aaca19daa8015a3fa5048ee669362305abc6c (diff)
downloaddotfiles_ascii-c9794fec6f9c9bb5ffbf0666d81bc167cc3273e3.tar.xz
dotfiles_ascii-c9794fec6f9c9bb5ffbf0666d81bc167cc3273e3.zip
make c alias really work like cat
Diffstat (limited to '')
-rwxr-xr-xzsh/.zsh/aliases.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh
index b96831a..f1eeda2 100755
--- a/zsh/.zsh/aliases.zsh
+++ b/zsh/.zsh/aliases.zsh
@@ -84,7 +84,10 @@ email() {
echo $3 | mutt -s $2 $1
}
c() {
- pygmentize -O style=sourcerer -f console256 -g $1
+ for file in "$@"
+ do
+ pygmentize -O style=sourcerer -f console256 -g "$file"
+ done
}
l() {
pygmentize -O style=sourcerer -f console256 -g $1 | less -r