1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

memo: zsh alias

1
Last updated at Posted at 2019-04-12
.zshrc
# basic
alias qq="exit"
alias c="pbcopy"
alias reload_zsh="source ~/.zshrc"
alias edit_zsh="vim ~/.zshrc && source ~/.zshrc"
alias v="vim"
alias lt="ls -ltr"

# git
alias g="git"
alias co="git checkout"
alias st="git status"
alias ft="git fetch"
alias stash="git stash"
alias gb="git branch"
alias gdel="git branch -D"
alias gadd="git add ."
alias gcommit="git commit -m "
alias gpush="git push origin HEAD"
alias gpull="git pull origin master"
alias gdiff="git diff"
alias master="git checkout master"
alias gmerge="git merge"

# docker
alias dcu="docker-compose up"
alias dcb="docker-compose build --no-cache"
alias dce="docker-compose exec"
alias dcw="docker-compose exec web"
alias dcmigrate="docker-compose exec web rails db:migrate"
alias dcrollback="docker-compose exec web rails db:rollback"
alias dcrspec="docker-compose exec web rspec"
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?