February 17, 2022 (2023/09/25追記) 最近こちらの記事のキャッシュ機構を入れたらさらに改善しました。 cache_dir=${XDG_CACHE_HOME:-$HOME/.cache} sheldon_cache="$cache_dir/sheldon.zsh" sheldon_toml="$HOME/.config/sheldon/plugins.toml" if [[ ! -r "$sheldon_cache" || "$sheldon_toml" -nt "$sheldon_cache" ]]; then mkdir -p $cache_dir sheldon source > $sheldon_cache fi source "$sheldon_cache" unset cache_dir sheldon_cache sheldon_toml 計測 ti
git-escape-magic for zsh Synopsis git-escape-magic - zle tweak for git command line arguments Description If you are a hard-core zsh user that takes extended_glob seriously for granted, you must be annoyed with git's refspec (notation to point a commit, tree, etc.) that goes like HEAD^ or blahblah~3 because the signs like [^~{}] are globbing meta-characters for zsh that require escaping to be pass
まず, 他のシェルをお使いの人にはごめんなさい. aliasコマンドの-sが使えるのは zsh 4.2.x- で, 他のシェルでは実装されていないと思います. あと, もう既に alias -s 知ってるよーって人は読まなくていいです. alias -s って何? 打ったコマンドの後ろ(suffix)を見て, 適当に宜しくやってくれるやつです. 次の例を見て下さい. ~$ echo "print ('hello, world')" > hello.py ~$ python hello.py hello, world ~$ alias -s py=python py=python ~$ ./hello.py hello, world ~$ Pythonのコードは python hello.py で実行出来ますが, お尻が py なら python を使います, とaliasしておけば, ./
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く