Skip to content

Commit c9794fe

Browse files
author
xero
committedOct 31, 2015
make c alias really work like cat
1 parent ea6aaca commit c9794fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎zsh/.zsh/aliases.zsh

+4-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ email() {
8484
echo $3 | mutt -s $2 $1
8585
}
8686
c() {
87-
pygmentize -O style=sourcerer -f console256 -g $1
87+
for file in "$@"
88+
do
89+
pygmentize -O style=sourcerer -f console256 -g "$file"
90+
done
8891
}
8992
l() {
9093
pygmentize -O style=sourcerer -f console256 -g $1 | less -r

0 commit comments

Comments
 (0)
Please sign in to comment.