プログラマー兼カバラ占星術師komagataのブログ。
プログラマー兼カバラ占星術師komagataのブログ。
CTRLキーを押しながらDキーを押しても,シェルを終了しないように設定する。exitコマンドは利用できる
キーボードをSandSに設定しているので,急いでコマンドを打っていると,gitPullとか,gitPushとか打ってしまう. setopt correctしていれば,ちょっと間違えたくらいならzshが訂正してくれるが,コマンドと引数の間にスペースがない場合,訂正してくれない. % fit push origin master # これは直してくれる git is correct? [n,y,a,e]: y % gitPush origin master # これはだめ zsh: command not found: gitPush 以下の記事によると,command_not_found_handlerという関数を定義すれば,コマンドが見付からなかったときにフックをかけられるらしい. zsh で method_missing っぽいことをするには command_not_found_hand
昨日,command_not_found_handlerというシェルスクリプトの関数を書いた*1のだけど,どうも実行が遅いような気がした. 試しに時間を計ってみると,確かに遅かった.再帰的に13回呼ぶのに,1秒くらい待たされている. % time XXXXXXXXXXXXX => xXXXXXXXXXXXX => x xXXXXXXXXXXX => x x xXXXXXXXXXX => x x x xXXXXXXXXX => x x x x xXXXXXXXX => x x x x x xXXXXXXX => x x x x x x xXXXXXX => x x x x x x x xXXXXX => x x x x x x x x xXXXX => x x x x x x x x x xXXX => x x x x x x x x x x xXX => x x x x x x x x x
Other solutions that involve doing du -sx /* are incomplete because they will still descend other top-level filesystems are that mounted directly at "/" because the * expands to explicitly include all files and directories in "/", and du will still traverse them even with -x because you asked it to by supplying the directory name as a parameter (indirectly via "*"). Show Sample Output 4.0K /mnt 4.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く