タグ

zshに関するfukuiretuのブックマーク (4)

  • z.shでよく行くディレクトリに手軽に移動する - Qiita

    以下は私の .zshrc から z.sh の動作に必要な部分を抜粋したものです。古いバージョンの zsh でも動作させるため、直接スクリプトの動作に関わりの無い部分も記載しています。 スクリプトは $ZDOTDIR/z/z.sh に配置 z だとタイプしづらいので j に変更 記録ファイルは $ZDOTDIR/.z に変更 :a や :A などの変数展開制御編集子が使用できないバージョンでは独自にフック関数を定義 autoload -Uz is-at-least # Treat hook functions as array typeset -ga chpwd_functions typeset -ga precmd_functions typeset -ga preexec_functions # Simulate hook functions for older versions if

    z.shでよく行くディレクトリに手軽に移動する - Qiita
  • zshのalias -s (suffix alias)が神な件 - プログラムモグモグ

    まず, 他のシェルをお使いの人にはごめんなさい. 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しておけば, ./

    zshのalias -s (suffix alias)が神な件 - プログラムモグモグ
  • zshに乗り換えました


    ou.g bash使zsh zsh使 zsh  ./configure make sudo make install zshbash使 便使grml-zsh-configoh-my-zshoh-my-zshzsh oh-my-zshgit clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-templat
    zshに乗り換えました
  • OS X Lion に zsh をイントール - iriya_ufo’s blog


    OS X Lion  /bin/zsh  Homebrew Homebrew  Homebrew  zsh  $ brew install zshHomebrew  /usr/local/   /etc/shells 1 /usr/local/bin/zsh     /usr/local/bin/zsh 
    OS X Lion に zsh をイントール - iriya_ufo’s blog
  • 1