MacOS X uses tcsh as standard, I thought?

See /usr/share/init/tcsh for ideas...

Some commands are shell dependent; for example cd versus cd -

[outerlimits:~] sneex% pwd
/Users/sneex
[outerlimits:~] sneex% cd /
[outerlimits:/] sneex% pwd
/
[outerlimits:/] sneex% cd -
[outerlimits:~] sneex% pwd
/Users/sneex


Some others I have aliased are -

[outerlimits:~] sneex% alias
..       pwd
...      cd ..
Sx      ssh -2 -l $1 $2
cd..    cd ..
cdwd    cd `pwd`
cls     clear
cwd     echo $cwd
ff      find . -name !:1 -print
files   find !:1 -type f -print
l       ls -lg
line    sed -n '!:1 p' !:2
list_all_hostnames      grep -v "^#" /etc/hosts
ll      ls -lag !* | more
term    set noglob; unsetenv TERMCAP; eval `tset -s -I -Q - !*`
word    grep !* /usr/share/dict/web2
wordcount       ((cat !* | tr -s '      .,;:?!()[]"' '\012' | cat -n | tail
-1 | awk '{print $1}'))

Just about all of those came already defined...

Enjoy!
-Sx- :]

Reply via email to