[Git] Git Bash Alias - Windows
[Git] Git Bash Alias - Windows
Windows Git Bash에서 Alias 설정
C:\Program Files\Git\etc\profile.d
경로의aliases.sh
파일에 아래와 같이 추가1 2 3 4 5 6 7
alias mgmt='cp -f $HOME/.kube/config_mgmt $HOME/.kube/config; kubectl get node -o wide' alias prod='cp -f $HOME/.kube/config_prod $HOME/.kube/config; kubectl get node -o wide' alias stg='cp -f $HOME/.kube/config_stg $HOME/.kube/config; kubectl get node -o wide' alias dev='cp -f $HOME/.kube/config_dev $HOME/.kube/config; kubectl get node -o wide' alias beta='cp -f $HOME/.kube/config_beta $HOME/.kube/config; kubectl get node -o wide' alias ls='ls -F --color=auto --show-control-chars' alias ll='ls -l'
C:\Program Files\Git\etc
경로로 이동,bash.bashrc
파일에 아래와 같이 추가1
. /etc/profile.d/aliases.sh
- Terminal에서
/etc
경로로 이동, 아래 명령어로 적용1
source bash.bashrc
This post is licensed under CC BY 4.0 by the author.