-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_zshrc
79 lines (67 loc) · 2.77 KB
/
_zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
HISTFILE=~/.zsh_history
SAVEHIST=1000
HISTSIZE=1000
setopt appendhistory
# ハッシュをコメントとして無視する
setopt interactivecomments
# Zinit install will fail if there is git is not installed (ubuntu-desktop default etc). Installing git if not found.
# MacOS with Xcode should have git installed by default, but will try if apt fails.
which git > /dev/null || (echo "installing git" && sudo apt-get install git || brew install git)
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi
source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/z-a-rust \
zdharma-continuum/z-a-as-monitor \
zdharma-continuum/z-a-patch-dl \
zdharma-continuum/z-a-bin-gem-node
### End of Zinit's installer chunk
# Two regular plugins loaded without tracking.
zinit light zsh-users/zsh-autosuggestions
zinit light zdharma-continuum/fast-syntax-highlighting
zplugin ice depth=1; zplugin light romkatv/powerlevel10k
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
# シェル上で日本語化けるの対策。 # sshでlinuxリモートで化ける時は、iterm2 から locale variable を送信しないように変更
# export LANG=ja_JP.UTF-8
# Easier to handle ssh etc
export LANG=en_US.UTF-8
# coatools @taiyodayo
if [ -f ~/.mailab/coatools/coatools.sh ]; then
source ~/.mailab/coatools/coatools.sh
fi
# mai研究室用スクリプト
export docker_host=$(hostname)
setopt extended_glob
# マシン別の設定ファイルをソース
if [ -f ~/.zlocal ]; then
source ~/.zlocal
fi
## Colorize the ls output ##
alias ls='ls --color=auto'
# 実行ユーザの uid/gid でコンテナを実行
export local_uid=$(id -u)
export local_gid=$(id -g)
export docker_host=$(hostname)
export MAI_DEBUG="rstudio_gui"
git config --global user.name "taiyo@$(hostname) default"
git config --global user.email "[email protected]"
# rbenv の設定 - Mac でアプリ開発する場合のみ必要
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init - zsh)"
# ff = fvm flutter
alias ff='fvm flutter'
export PATH="$HOME/flutter/bin:$PATH"
# python / uv
source p312/bin/activate