See also the shell code page for more general tips. Make sure to also read through the example configuration for any further comments. Guarding against wrong invocation If you use (say) any Zsh-specific coding in shell scripts, at the very least make sure to put #!/usr/bin/zsh or similar into the header so the right interpreter is run when the file is executed. Even so, a direct sh invocation migh
上記のように書いておけば,コマンド実行に3秒以上かかったときにtimeコマンドと同じように処理時間を出してくれる $ ec2-describe-regions REGION eu-west-1 ec2.eu-west-1.amazonaws.com REGION sa-east-1 ec2.sa-east-1.amazonaws.com ... ec2-describe-regions 10.14s user 0.68s system 77% cpu 14.018 total Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark t
jsxの補完が書きたかったというか、コンマで区切られた値の補完を どうやるんだというのが知りたかったので書いてみました。 コード jsx --helpだけを参考に書いたので問題があるかもしれません。 #compdef jsx _jsx_warn() { local expl warning local -a jsx_warnings jsx_warnings=(all deprecated none) # Ignore existing values compset -P '*,' # Remove already-referenced warnings for warning in ${(s:,:)${IPREFIX}} do jsx_warnings=( ${jsx_warnings:#$warning} ) done _wanted jsx_warnings expl 'warnin
_ [zsh] ZshでURLを自動でエスケープするurl-quote-magic 例えば以下のようなコマンド % w3m http://www.google.com/search?hl=ja&q=zsh を実行すると、 [1] 9470 % zsh: no matches found: http://www.google.com/search?hl=ja % [1] + exit 1 w3m http://www.google.com/search?hl=ja % というような結果になってしまいがっかりすることになる。 .zshrcに以下のような記述 autoload -Uz url-quote-magic zle -N self-insert url-quote-magic をしておいて、最初のコマンドを入力していくとエスケープすべき文字を打つと自動的に'\'が挿入され、 % w3m
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く