Browse Source

[#145] Simplify the slit utility

master
Sorin Ionescu 13 years ago
parent
commit
dbc9dff760
  1. 2
      modules/utility/init.zsh

2
modules/utility/init.zsh

@ -42,7 +42,7 @@ compdef _cd popdll 2> /dev/null
# Prints columns 1 2 3 ... n. # Prints columns 1 2 3 ... n.
function slit { function slit {
awk "{ print $(for n; do print -n "\$$n,"; done | sed 's/,$//') }" awk "{ print ${(j:,:):-\$${^@}} }"
} }
# Finds files and executes a command on them. # Finds files and executes a command on them.

Loading…
Cancel
Save