Skip to content

Instantly share code, notes, and snippets.

@rummelonp
Created May 14, 2015 15:27
Show Gist options
  • Save rummelonp/a2d1d09ebdbf3eb0e4f6 to your computer and use it in GitHub Desktop.
Save rummelonp/a2d1d09ebdbf3eb0e4f6 to your computer and use it in GitHub Desktop.
最低限の bash の設定
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
RESET="\e[0m"
GREEN="\e[0;32m"
BLUE="\e[0;34m"
RED="\e[0;31m"
WHITE="\e[1;37m"
BASE_COLOR=$GREEN
export TERM=xterm-256color
export PS1="\$(if [[ \$? == 0 ]]; then echo \"${GREEN}(╹ω╹)\"; else echo \"${RED}(☓ω☓)\"; fi)${BASE_COLOR}\u@\h${WHITE}:${BLUE}\w${RESET}$ "
export EDITOR=vim
export LSCOLORS=exfxcxdxbxegedabagacad
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
alias ls='ls --color'
alias l='ls -1'
alias la='ls -1A'
alias ll='ls -1alF'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment