Last active
January 30, 2023 00:59
-
-
Save CatBloom/5efa8746c7b0a511889ae873fb3d9363 to your computer and use it in GitHub Desktop.
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 NVM_DIR=~/.nvm | |
source $(brew --prefix nvm)/nvm.sh | |
export LANG=ja_JP.UTF-8 | |
export GOPATH=$HOME/go | |
export PATH=$GOPATH/bin:$PATH | |
export CLICOLOR=1 | |
# git command | |
alias ga='git add' | |
alias gc='git commit' | |
alias gca='gc --amend --no-edit' | |
alias gs='git switch' | |
alias gb='git branch' | |
alias gf='git fetch -p' | |
alias gps='git push' | |
alias gpl='git pull' | |
alias gd='git diff --cached' | |
alias gsu='git stash -u' | |
alias gsd='git stash drop' | |
alias gsa='git stash apply' | |
function gbgone() { | |
gb -vv | grep gone | awk '{print $1}' | |
} | |
function gbclean() { | |
gbgone | xargs git branch -D | |
} | |
# docker command | |
alias dr='docker run' | |
alias dexec='docker exec -it' | |
# docker compose command | |
alias dcu='docker compose up' | |
alias dcub='docker compose up --build' | |
alias dcd='docker compose down' | |
# angular command | |
alias ngs='ng serve' | |
alias ngt='ng test' | |
alias ngts='ng test --main src/test.ts --include' | |
alias ngbp='ng build --configuration production' | |
function ngcomp() { | |
ng g component $1 --module $2 | |
} | |
function ngserv() { | |
ng g service $1 | |
} | |
function ngdire() { | |
ng g directive $1 --module $2 | |
} | |
function ngpipe() { | |
ng g pipe $1 --module $2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment