漢の zsh
zsh との付き合いは 7 年くらいになりますが、やはり補完が便利です。 tar のオプションを補完。 % tar ←ここで tab キー A – append to an archive c – create a new archive f – specify archive file or device...
zsh との付き合いは 7 年くらいになりますが、やはり補完が便利です。 tar のオプションを補完。 % tar ←ここで tab キー A – append to an archive c – create a new archive f – specify archive file or device...
ログインシェルとして起動: .zshenv -> .zprofile -> .zshrc -> .zlogin インタラクティブシェルとして起動: .zshenv -> .zshrc シェルスクリプトとして起動: .zshenv ログインシェルとして終了: .zlogout
tcshでもできるみたい。 http://tehanu.hpcl.titech.ac.jp/zsh/waka/intro-LoginLogoutWatching.html % watch=all % WATCHFMT="%n has %a %l from %m at %t %w." % log
% cd -[TAB]
foreach file (*); if [ -d “$file” ]; then; ls -alFd $file; fi; end
hash -r
|&' は 2>&1 |’ の省略形だが、>& word' は > word 2>&1’ の省略形ではない。
|which コマンド名 と ‘=コマンド名’は同じ |% ls -al =emacs |lrwxrwxrwx 1 root root 5 Apr 30 06:44 /usr/local/bin/emacs -> emcws | |rm *.o~hoge.o で hoge.o 以外の全ての *.o が消せる。 | |ワイルドカー...
‘setopt histignorealldups’して、‘history’すると同じ履歴は消えているけど、 $HIST...
http://cl.aist-nara.ac.jp/student/daiti-m/text/zsh-intro.html