Last active
December 28, 2019 15:11
-
-
Save ShinichiroFunatsu/5acf5b999ca515bd0c86adf9445f74c7 to your computer and use it in GitHub Desktop.
.zshrc settings (open with vscode `$code ~/.zshrc`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.zshrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set adb | |
export PATH="$HOME/Library/android/sdk/platform-tools:$PATH" | |
# fish way | |
# set PATH $HOME/Library/android/sdk/platform-tools $PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Completion Settings | |
# | |
#色の定義 | |
local DEFAULT=$'%{^[[m%}'$ | |
local RED=$'%{^[[1;31m%}'$ | |
local GREEN=$'%{^[[1;32m%}'$ | |
local YELLOW=$'%{^[[1;33m%}'$ | |
local BLUE=$'%{^[[1;34m%}'$ | |
local PURPLE=$'%{^[[1;35m%}'$ | |
local LIGHT_BLUE=$'%{^[[1;36m%}'$ | |
local WHITE=$'%{^[[1;37m%}'$ | |
#補完に関するオプション | |
setopt auto_param_slash # ディレクトリ名の補完で末尾の / を自動的に付加し、次の補完に備える | |
setopt mark_dirs # ファイル名の展開でディレクトリにマッチした場合 末尾に / を付加 | |
setopt list_types # 補完候補一覧でファイルの種別を識別マーク表示 (訳注:ls -F の記号) | |
setopt auto_menu # 補完キー連打で順に補完候補を自動で補完 | |
setopt auto_param_keys # カッコの対応などを自動的に補完 | |
setopt interactive_comments # コマンドラインでも # 以降をコメントと見なす | |
setopt magic_equal_subst # コマンドラインの引数で --prefix=/usr などの = 以降でも補完できる | |
setopt complete_in_word # 語の途中でもカーソル位置で補完 | |
setopt always_last_prompt # カーソル位置は保持したままファイル名一覧を順次その場で表示 | |
setopt nonomatch | |
bindkey "^I" menu-complete # 展開する前に補完候補を出させる(Ctrl-iで補完するようにする) | |
zstyle ':completion:*' verbose yes | |
zstyle ':completion:*' completer _expand _complete _match _prefix _approximate _list _history | |
zstyle ':completion:*:messages' format $YELLOW'%d'$DEFAULT | |
zstyle ':completion:*:warnings' format $RED'No matches for:'$YELLOW' %d'$DEFAULT | |
zstyle ':completion:*:descriptions' format $YELLOW'completing %B%d%b'$DEFAULT | |
zstyle ':completion:*:corrections' format $YELLOW'%B%d '$RED'(errors: %e)%b'$DEFAULT | |
zstyle ':completion:*:options' description 'yes' | |
# グループ名に空文字列を指定すると,マッチ対象のタグ名がグループ名に使われる。 | |
# したがって,すべての マッチ種別を別々に表示させたいなら以下のようにする | |
zstyle ':completion:*' group-name '' | |
#cdを打ったら自動的にlsを打ってくれる関数 | |
function cd(){ | |
builtin cd $@ && ls; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set nodenv | |
export NODENV_ROOT="$HOME/.anyenv/envs/nodenv" | |
export PATH="$HOME/.anyenv/envs/nodenv/bin:$PATH" | |
export PATH="$NODENV_ROOT/shims:$PATH" | |
# set -x NODENV_ROOT $HOME/.anyenv/envs/nodenv | |
# set -x PATH $HOME/.anyenv/envs/nodenv/bin $PATH | |
# set -gx PATH $NODENV_ROOT/shims $PATH | |
# set elm | |
export ELM_ROOT="$NODENV_ROOT/versions/11.15.0/lib/node_modules/elm" | |
export PATH="$ELM_ROOT/bin:$PATH" | |
# set -x ELM_ROOT $NODENV_ROOT/versions/11.15.0/lib/node_modules/elm | |
# set -x PATH $ELM_ROOT/bin $PATH | |
# set elm format $HOME/.anyenv/envs/nodenv/versions/11.15.0/bin/elm-format | |
# -> $HOME/.anyenv/envs/nodenv/versions/11.15.0/lib/node_modules/elm-format/bin/elm-format | |
export ELM_FORMAT="$NODENV_ROOT/versions/11.15.0/lib/node_modules/elm-format" | |
export PATH="$ELM_FORMAT/bin:$PATH" | |
# set -x ELM_FORMAT $NODENV_ROOT/versions/11.15.0/lib/node_modules/elm-format | |
# set -x PATH $ELM_FORMAT/bin $PATH | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you must install jenv and java | |
# set up java with jenv | |
# do not set JAVA_HOME here | |
export PATH="$HOME/.jenv/bin:$PATH" | |
eval "$(jenv init -)" | |
# fish way | |
# set PATH $HOME/.jenv/bin $PATH | |
# eval (jenv init - | source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# powerlevel9k customization | |
# | |
# new line settings | |
# POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
## left-right elements settings | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs) | |
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time ssh) | |
# dir shorten settings | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 | |
POWERLEVEL9K_SHORTEN_DELIMITER='' | |
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right" |
Author
ShinichiroFunatsu
commented
Dec 28, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment