0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ターミナルの設定

0
Posted at

自分用の備忘録です

## gitのブランチ名を常に表示する対応
autoload -Uz vcs_info
precmd() { vcs_info }
setopt prompt_subst

# パス表示
PROMPT='%~ %F{cyan}${vcs_info_msg_0_}%f%% '

# パス表示「現在ディレクトリのみ」
# PROMPT='%1~ %F{cyan}${vcs_info_msg_0_} $ '
# パス表示「フルパス表示」
# PROMPT='%n@%m %~ ${vcs_info_msg_0_} $ '
zstyle ':vcs_info:git:*' formats '(%b)'

# pnpm
export PNPM_HOME="/Users/a.kawanobe/Library/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end


# yazi
function yy() {
    local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
    yazi "$@" --cwd-file="$tmp"
    if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
        cd -- "$cwd"
    fi
    rm -f -- "$tmp"
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?