Created
August 23, 2022 23:23
-
-
Save ogawatti/f3813b3f4334d793d7efda93f2fab7c2 to your computer and use it in GitHub Desktop.
bashrc for mac
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
export PS1='[\u@\h \W]\$ ' | |
export LSCOLORS=gxfxcxdxbxegedabagacad | |
export GREP_OPTIONS="--binary-files=without-match --color=auto" | |
export LANG=ja_JP.UTF-8 # Win-Mac 文字化け対策 | |
export LESSCHARSET=utf-8 # Win-Mac 文字化け対策 | |
export HISTTIMEFORMAT='%y/%m/%d %H:%M:%S '; | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
export PATH="/opt/homebrew/bin:$PATH" | |
export PATH="/opt/homebrew/opt/curl/bin:$PATH" | |
export PATH="/opt/homebrew/sbin:$PATH" | |
# bash-completion | |
# if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
# . $(brew --prefix)/etc/bash_completion | |
# fi | |
# git-completion | |
# source /opt/homebrew/etc/bash_completion.d/git-completion.bash | |
# source /opt/homebrew/etc/bash_completion.d/git-prompt.sh | |
# rbenv ruby | |
# export PATH="~/.rbenv/shims:/usr/local/bin:$PATH" | |
# eval "$(rbenv init -)" | |
# Ruby | |
export RUBYOPT='--disable-did_you_mean' | |
# nvm node | |
# export NVM_DIR="$HOME/.nvm" | |
# [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" | |
# [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" | |
# export PATH=$PATH:./node_modules/.bin | |
alias ls='ls -G' | |
alias ll='ls -l' | |
alias lh='ls -lh' | |
alias la='ls -a' | |
alias la='ls -a' | |
alias lla='ls -la' | |
alias l='ls' | |
alias safari="open -a '/Applications/Safari.app'" | |
alias chrome="open -a '/Applications/Google Chrome.app'" | |
alias firefox="open -a '/Applications/Firefox.app'" | |
alias typora="open -a '/Applications/Typora.app'" | |
alias be='bundle exec' | |
# SSH change theme | |
alias ssh="/usr/local/bin/ssh-change-theme" | |
# OpenSSL | |
# export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH" | |
# export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib" | |
# export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include" | |
# export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig" | |
# Another | |
export DOCKER_HOST=ssh://lima-docker:50272 | |
export PLANTUML_LIMIT_SIZE=8192 | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment