Last active
August 19, 2020 08:02
-
-
Save Ryomasao/82e8f8625214be3b5aa6f9e8e0a14589 to your computer and use it in GitHub Desktop.
シェルの環境メモ
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
# sshの事故を防ぐ | |
# https://dev.classmethod.jp/articles/iterm2-ssh-change-profile/#toc-4 | |
alias ssh='~/bin/ssh-change-profile.sh' | |
# itemでファイル属性ごとに色を変える | |
export CLICOLOR=1 | |
export LSCOLORS="GxFxCxDxBxegedabagaced" | |
# sshの接続先メモ | |
alias ssh-memo='code ~/.ssh' | |
# 汎用的なメモ | |
alias memo='vim /Users/ryoji.yamauchi.ut/src/memo.md' | |
# aws cliをdocker経由で実行する | |
alias aws='docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli' | |
# docker-composeを短縮する | |
alias dc='docker-compose' | |
# nodenvのpath追加 | |
eval "$(nodenv init -)" | |
# node以外のphpenvとかはanyenvで管理する | |
eval "$(anyenv init -)" | |
# git のブランチを表示したい | |
# https://www.themoderncoder.com/add-git-branch-information-to-your-zsh-prompt/ | |
# Load version control information | |
autoload -Uz vcs_info | |
precmd() { vcs_info } | |
zstyle ':vcs_info:git:*' formats 'on branch %b' | |
setopt PROMPT_SUBST | |
PROMPT='%n in ${PWD/#$HOME/~} ${vcs_info_msg_0_} > ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment