aliasãè¨å®ããã¨ããå ã®ã³ãã³ãåãç¡å¹åããã
alias便å©
shellã®aliasã¯ä¾¿å©ãªæ©è½ã ã ãã使ãã³ãã³ãã«ç縮åãè¨å®ãã¦ã·ã§ã«ã®æä½ãå¹çåãããã¨ãã§ããã
#.zshrc alias g='git'
$ g status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean
aliasãå¿ãã¦å ã®ã³ãã³ãåãå©ãåé¡
ããããå°ã£ããã¨ãããã aliasãè¨å®ãããã¨ãå¿ãã¦ãå ã®ã³ãã³ãåã使ã£ã¦ãã¾ããã¨ãããããã®ã ã
å ã®ã³ãã³ãåã使ãããã«ãç縮åã®ã³ãã³ãåã使ããããã¨ãå¼·å¶ããããï¼èªåã«ï¼
ããã§ãã®ãããªè¨å®ãããã
å®éã®è¨å®
- å
ã®ã³ãã³ãåã
echo "use alias!"
ã«ç½®ãæãã¦ãã¾ãã
#.zshrc alias g='\git' alias git='echo "use alias!"'
- ããã ãã ã¨ããããã¨ä¸é½åãèµ·ããããªã®ã§ããããã
#.zshrc alias g='\git' alias git='echo "use alias!" ; sleep 3 ; git'
- ããã§ããaliasã身ã«ã¤ãã