タグ

zshに関するiga_kのブックマーク (12)

  • macでzshでzsh compinit: insecure directoriesの警告が出る問題 - Qiita

    % cd /usr/local/share/zsh % ls -la total 0 drwxrwxr-x 6 ayihis admin 204 9 21 18:28 ./ drwxrwxr-x 14 ayihis admin 476 9 22 15:29 ../ drwxr-xr-x 982 ayihis admin 33388 9 21 18:28 functions/ drwxr-xr-x 110 ayihis admin 3740 9 21 18:28 help/ drwxr-xr-x 3 ayihis admin 102 9 21 18:28 scripts/ drwxrwxr-x 6 ayihis admin 204 9 22 15:29 site-functions/

    macでzshでzsh compinit: insecure directoriesの警告が出る問題 - Qiita
    iga_k
    iga_k 2022/04/21
  • zshで引数付きのrake taskを実行する - Qiita

    bundle exec rake hoge:foo[bar] zsh: no matches found: hoge:foo[bar] こうなってエラーになってしまいました。 解決法は単純で bundle exec rake hoge:foo\[bar\] [をエスケープするか bundle exec rake 'hoge:foo[bar]' でシングルクォーテーションで囲む必要があるんですね。 bashだとそのまま実行できたので知りませんでした。

    zshで引数付きのrake taskを実行する - Qiita
    iga_k
    iga_k 2022/02/07
    zshで角括弧をつかうときは注意
  • zsh の rehash が面倒だという話 - 兼雑記

    なんか shell function だの alias だのはこう、ああこれいらないなーと思った時に既に適用してしまった shell に対して unfunction だの unalias だのをするか、それとも zsh を再起動しなければならない、といったような理由であまり好きではないです。で、基的に ~/bin の下にどんどこつっこみます。 そのスタイルでやってて問題になるのは新しい実行ファイルを突っ込んだ時に必要になる rehash とかいうコマンドです。 bash とかは勝手に調べてくれるのに…! とか思いますが、 NFS とかそういう環境では前もって調べておいてくれているのは悪いことではないので怒らないことにします。 でもまぁ rehash とかタイプするのは面倒だなぁと考えていて、 ^L で画面を消去した時に同時に rehash してくれるくらいが丁度いい粒度じゃないかなぁと思

    zsh の rehash が面倒だという話 - 兼雑記
    iga_k
    iga_k 2019/07/10
    rehash というのがあるのかー。zshはコマンドの探索パスをキャッシュしている。
  • zshのキーバインドで余っているキーを探す - mollifier delta blog

    初めに zsh最強シェル入門を買ってから、zshのカスタマイズにはまっています。今日はコマンドライン編集のキーバインドをいい感じにしようとしていました。 で、色々やってたけど、キーがぜんぜん足りません。 何か使いやすいキーに割り当てようとしても、たいていのキーはデフォルトで使われています。そこで、「何にも割り当てがないし、押しやすいキー」(いい子)と「押しやすいくせにほとんど使っていないキー」(わるい子)を探すことにしました。 デフォルト設定を調べる 使いやすいキーバインドと言えば、「Ctrl+なんちゃら」。ということで、デフォルトのキーバインドのうちC-*という形式のやつを調べました。 % bindkey -d # デフォルト設定に戻す % bindkey -e # emacsモードを使う % bindkey # 今設定されているすべてのキーバインドを表示する "^@" set-mark

    zshのキーバインドで余っているキーを探す - mollifier delta blog
  • https://github.com/joker1007/dotfiles/blob/master/zshrc

    https://github.com/joker1007/dotfiles/blob/master/zshrc
    iga_k
    iga_k 2014/07/16
    jokerさんのpeco設定
  • widgets can only be called when ZLE is active とは何だったのか - Qiita

    function percol-cdr () { local selected_dir=$(cdr -l | awk '{ print $2 }' | percol --query "$LBUFFER") if [ -n "$selected_dir" ]; then BUFFER="cd ${selected_dir}" zle accept-line fi zle clear-screen } zle -N percol-cdr これを読み込んで、おもむろに percol-cdr という 関数を 呼び出し、やった! これでぼくもナウいpercolユーザだ! ってやろうとすると $ percol-cdr percol-cdr:zle:4: widgets can only be called when ZLE is active percol-cdr:zle:6: widgets can

    widgets can only be called when ZLE is active とは何だったのか - Qiita
    iga_k
    iga_k 2014/07/14
    まったく同じことで悩んでたら @udzura さんが解説してくれてた。ありがたや。
  • zsh - Zsh Line Editor

    If the ZLE option is set (it is by default) and the shell input is attached to the terminal, the user is allowed to edit command lines. There are two display modes. The first, multi-line mode, is the default. It only works if the TERM parameter is set to a valid terminal type that can move the cursor up. The second, single line mode, is used if TERM is invalid or incapable of moving the cursor up,

    iga_k
    iga_k 2014/01/06
    zshell、こんなにbindされてないコマンドがあったのか。emacsモードとviモードがあるからか。
  • zshのviキーバインドでコマンドラインスタック+α - Qiita

    デフォルトのviキーバインドだとEsc-qで動作しない スタックしたものが見えない Esc-qは押しにくい(個人的に) というわけで、viキーバインドでC-qでスタックし、その内容を表示しておくようにしてみた。 show_buffer_stack() { POSTDISPLAY=" stack: $LBUFFER" zle push-line-or-edit } zle -N show_buffer_stack setopt noflowcontrol bindkey '^Q' show_buffer_stack

    zshのviキーバインドでコマンドラインスタック+α - Qiita
    iga_k
    iga_k 2013/01/09
  • GitHub - zsh-users/zsh-completions: Additional completion definitions for Zsh.

    This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

    GitHub - zsh-users/zsh-completions: Additional completion definitions for Zsh.
    iga_k
    iga_k 2012/01/28
    ソーシャル補完集
  • robbyrussell/oh-my-zsh - GitHub

    Oh My Zsh is an open source, community-driven framework for managing your zsh configuration. Sounds boring. Let's try again. Oh My Zsh will not make you a 10x developer...but you may feel like one. Once installed, your terminal shell will become the talk of the town or your money back! With each keystroke in your command prompt, you'll take advantage of the hundreds of powerful plugins and beautif

    robbyrussell/oh-my-zsh - GitHub
    iga_k
    iga_k 2011/01/04
    zshの気の利いた設定集
  • Themes

    This wiki is automatically published from ohmyzsh/wiki. To edit this page, go to ohmyzsh/wiki, make your changes and submit a Pull Request. This section uses new, uniform screenshots. To see the previous section, go to Themes (legacy). All the current themes can be found in the themes/ directory in the Oh My Zsh distribution. See list here. In order to enable a theme, set ZSH_THEME to the name of

    Themes
    iga_k
    iga_k 2010/10/15
    zshのテンプレ集
  • [Game][PSP] MHP3, [zsh] zsh の vcs_info が神 - HsbtDiary(2010-03-19)

    ■ [Game][PSP] MHP3 発表されていた。水中戦を無くしたり双剣を復活させたりしたのは、操作面も関係しているかもしれなけど、やっぱりMH3で不評だったんだろうなあ。オレも水中戦はストレスにしか感じなかったし。 しかし、水中戦が無くなるとラギアやロアルドロス、ナマズあたりをどうすんのかね。まあ、その辺はMHP2Gのモンスターを出してボリュームをカバーするっぽいけど。 とりあえず、年末に向けて takkanm と ngtyk とモンハン部活動を再開したりしています。 ■ [zsh] zsh の vcs_info が神 隣に座っている日Hamlの会の会長に教えてもらった。元ネタはここらしい。 Git だろうと Mercurial だろうと、ブランチ名をzshのプロンプトにスマートに表示する方法 - ess sup 参考にして、下のような設定を .zshrc に書いてみた。 auto

    [Game][PSP] MHP3, [zsh] zsh の vcs_info が神 - HsbtDiary(2010-03-19)
    iga_k
    iga_k 2010/03/20
    おお、便利そう。メモメモ。
  • 1