Skip to content

Instantly share code, notes, and snippets.

@Ryomasao
Last active August 19, 2020 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryomasao/82e8f8625214be3b5aa6f9e8e0a14589 to your computer and use it in GitHub Desktop.
Save Ryomasao/82e8f8625214be3b5aa6f9e8e0a14589 to your computer and use it in GitHub Desktop.
シェルの環境メモ
# 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