Tech Stock logo Tech Stock

MAC용

어디에서든 어떤 맥을 지급 받던 편안하게 나의 환경을 구성.. 필요에 따라 계속 추가 수정

~/.bash_profile

eval "$(rbenv init -)"

# Basic Command
alias ll='ls -l'
alias lrt='ls -lrt'
alias la='ls -la'
alias cls='clear'
alias xplus='chmod +x'

# Set vim as default
alias vi=vim
alias svi='sudo vi'
alias edit='vim'

# Git
alias gs='git status'

# Jekyll Command
alias js='bundle exec jekyll serve'
alias jsnet='bundle exec jekyll serve --host 0.0.0.0'
alias jc='bundle exec jekyll clean'

# Rails Command
alias rs='rails s'
alias rs4='rails s -p 4000'
alias rc='rails c'
alias cre='rake db:create'
alias mig='rake db:migrate'
alias rol='rake db:rollback'
alias seed='rake db:seed'
alias drop='rake db:drop'
alias rr='rake routes'
alias be='bundle exec'
alias bi='bundle install'

# Hugo Command
alias hs='hugo server --bind 0.0.0.0 --themesDir ../..'
alias hb='hugo --themesDir ../..'

# NPM
alias npminstall='npm install'

# Database(Mysql)
alias dbstart='mysql.server start'
alias dbstop='mysql.server stop'
alias dbroot='mysql -u root -p'

# Process check
alias psjava='ps -ef | grep java'

# Terminal Color Setting
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1="\[\033[01;32m\]\[\033[01;34m\]\w\[\033[00m\] $ "



AWS EC2용

필요에 따라 계속 추가 수정

~/.bash_profile


# Basic Command
alias ll='ls -l'
alias lrt='ls -lrt'
alias la='ls -la'
alias cls='clear'
alias xplus='chmod +x'

# Set vim as default
alias vi=vim
alias svi='sudo vi'
alias edit='vim'

# Git
alias gs='git status'

# Process check
alias psjava='ps -ef | grep java'



참고할만한 자료들

아주 잘 정리된 페이지. 여기에 있는것 몇가지만 참고해도 유용할듯

링크 : 30 Handy Bash Shell Aliases For Linux / Unix / MacOS

멋지게 만들어서 쓰고있는분

링크 : MY MAC OSX BASH PROFILE