Opensource.comã¯9æ28æ¥(ç±³å½æé)ãã10 handy Bash aliases for Linuxï½Opensource.comãã«ããã¦ãBashã§å©ç¨ã§ãã便å©ãªã¨ã¤ãªã¢ã¹ã10åç´¹ä»ãããç´¹ä»ããã¦ããã¨ã¤ãªã¢ã¹ã¯æ¬¡ã®ã¨ããã
â [Mac OS X] ã·ã§ã«ã¹ã¯ãªããã¨ãã® CUI ã¢ããªã±ã¼ã·ã§ã³ã Mac OS X æ¹å¼ã® .app ã«ããæ¹æ³ [ç°¡å 5 ã¹ããã] ã·ã³ãã«ã§é«æ§è½ãª Mac OS X ç¨ã® sshfs å®è£ ã® sshfs for Darwin ã® 2.5.0 ããªãªã¼ã¹ãã¾ããã ã§ãä»å mount/umount ã Terminal.app ããã§ã¯ãªã㦠Finder ããåºæ¥ããããªå½¢ã«ããã®ã§ãã®æ¹æ³ã
ããã«æ¸ãã¦ãããã¨ãå®è¡ãã¦ä½ããã®é害ãçºçãã¦ãç§ã¯ä¸å責任ãåãã¾ããï¼èªå·±è²¬ä»»ã§è¡ãªã£ã¦ãã ããï¼ lsã³ãã³ãã®è²å¤æ´ åé ç®ã«ã¤ãã¦ï¼"å¤æ°=ç¶æ çªå·;è²çªå·"ã¨ããå½¢ã§æ¸ãï¼ã³ãã³ã§åºåã ç¶æ çªå·ã¨è²çªå·ã®é çªã¯ã©ã¡ããå ã§ãå¯ bashã§ã¯ï¼.bashrcãªã©ã«æ¬¡ã®ãããªè¨å®ãæ¸ã ä¾ï¼ãã¡ã¤ã«åã¯ããã©ã«ã(00)ï¼ãã£ã¬ã¯ããªåã¯å¼·èª¿(01)ããã·ã¢ã³(36)ï¼ã·ã³ããªãã¯ãªã³ã¯ã¯å¼·èª¿(01)ããé(34) export LS_COLORS="no=00:fi=00:di=01;36:ln=01;34" tcshã§ã¯ï¼.cshrcãªã©ã«æ¬¡ã®ãããªè¨å®ãæ¸ã ä¾ï¼ãã£ã¬ã¯ããªåã¯å¼·èª¿(1)ããã·ã¢ã³(36)ï¼ã·ã³ããªãã¯ãªã³ã¯ã¯å¼·èª¿(1)ããé(34) setenv LS_COLORS "di=36;1:ln=34;1" å¤æ°åã¨æ°åã®æå³ã¯ä»¥ä¸ã®éã å¤æ°å ããã©
bashã®ã«ã¹ã¿ãã¤ãº bashã¯ãçµã¿è¾¼ã¿ã®ãã·ã§ã«å¤æ°ãã使ã£ã¦ãã®åä½ãããç¨åº¦å¤æ´ã§ãã¾ããã·ã§ã«å¤æ°ã®è¨å®æ¹æ³ã¯ã ã®ããã«ãå¤æ°åã«æ°å¤ãããã¯æååãä»£å ¥ããå½¢ã«ãªãã¾ãã çµã¿è¾¼ã¿å¤æ°ã«ã©ããªãã®ããããããã£ã¨è¦ã¦ã¿ã¾ãããã ãã¹ããªé¢ä¿ âHISTCMD ç¾å¨ã®ã³ãã³ãã®ãã¹ããªçªå·ã âHISTCONTROL ignorespaceï¼ã¹ãã¼ã¹ãã¿ãã§å§ã¾ãè¡ããã¹ããªã«è¨é²ããªã ignoredupsï¼å ¥åãæå¾ã®ãã¹ããªã¨ä¸è´ããå ´åã«è¨é²ããªã ignorebothï¼ignorespaceã¨ignoredups両æ¹ãæå® æå®ãªãï¼ãã¹ã¦ã®å ¥åããã¹ããªã«è¨é²ãã âHISTFILE ãã¹ããªãã¡ã¤ã«åã ä¾ï¼HISTFILE=/home/username/.bash_history âHISTFILESIZE ãã¹ããªãã¡ã¤ã«ã«æ ¼ç´ãããã¹ããªã®æ大æ°ã âH
UNIXãLinuxã®ã¨ãã¹ãã¼ãã«ãªãã®ã«é¿ãã¦éããªãã®ããBashã«ä»£è¡¨ãããã³ãã³ãã©ã¤ã³ã·ã§ã«ã«ããæä½ã ãããã§æ¬è¨äºã§ã¯ããBashã®ã«ã¹ã¿ãã¤ãºããã·ã§ã«ã¹ã¯ãªããã®é«çãã¯ããã¯ããBash以å¤ã®é«æ©è½ã·ã§ã«ãã®3ã¤ã«ã¤ãã¦ãSourceForge.JP Magazineã§éå»ã«æ²è¼ããã解説è¨äºãç´¹ä»ããã Bashãã«ã¹ã¿ãã¤ãºãã¦ä½¿ãããªã Bashã¯é常ã«ã«ã¹ã¿ãã¤ãºã®å¹ ãåºããã¾ãã¡ãã£ã¨ããæ¹è¯ãç°¡åãªã·ã§ã«ã¹ã¯ãªããã®å©ç¨ã«ããã大ããä½æ¥å¹çãæ¹åãããããã§ã¯ãBashã®ã«ã¹ã¿ãã¤ãºãã¯ããã¯ã解説ããè¨äºãç´¹ä»ããã ã³ãã³ãã©ã¤ã³ã§ã·ã§ã«ã®ã¨ã¤ãªã¢ã¹ã¨é¢æ°ã使ã£ã¦ä½æ¥ãå¹çåãã GNU/Linuxã·ã¹ãã ãæ大éã«æ´»ç¨ããã«ã¯ããã¯ãã³ãã³ãããã³ããã¨ã·ã§ã«ã¹ã¯ãªããã¸ã®ç¿çãæ¬ ãããªããã¨ã¯ãããããããå¦çã¯ãªãã¹ãææ©ãæ¸ã¾ããããã®ã ãæ¬
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
bash ã¯ããã¤ãããã·ã§ã«ã®å ã®1ã¤ã§ Bourne ã·ã§ã«ãæ¡å¼µãããã®ã§ãã ã·ã§ã«ã¨ã¯ã«ã¼ãã«ã¨äººéã®é訳çåå¨ã§ãããã·ã§ã«ã®ããã³ããã§ã³ãã³ããå®è¡ããã¨ã³ãã³ãã¯ã·ã§ã«ã«ãã é訳ããã«ã¼ãã«ã«æ¸¡ããã¾ããã«ã¼ãã«ã®ã¡ãã»ã¼ã¸ãã·ã§ã«ã«ããé訳ãã人éã«è¡¨ç¤ºãã¾ãã ã¾ããã·ã§ã«ã¨ã«ã¼ãã«ã¯ç¬ç«ãã¦åå¨ãã¦ãããã«ã¼ãã«ãå ã¿è¾¼ãã§ããã¨ããæå³ã§ shellï¼è²æ®»ï¼ã¨åã¥ãããã¾ããã bash 㯠csh ã ksh ã®åªããæ©è½ãåãå ¥ããããã¤ãã®ä¾¿å©ãªæ©è½ã追å ããã¦ãã¾ãã
Vimã¯ãã®ã¾ã¾ã§ãã·ã§ã«ããã°ã©ãã³ã°ç¨ã®é常ã«åªããã¨ãã£ã¿ã ããã»ãã®å°ã調æ´ããã ãã§ãã¹ã¯ãªãããæ¸ãããã®æ¬æ ¼çãªIDEã«å¤èº«ããããVimã®èª¿æ´ã¯èªåã§è¡ãªããã¨ãå¯è½ã ããFritz Mehneræ°ã«ããBash Supportãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã°æ軽ã«è¡ãªããã¨ãã§ããã Bash Supportãã¤ã³ã¹ãã¼ã«ããã«ã¯ãzipã¢ã¼ã«ã¤ãããã¦ã³ãã¼ãã㦠~/.vimãã£ã¬ã¯ããªã«ã³ãã¼ããã¢ã¼ã«ã¤ããå±éãããã¾ãã~/.vimrcãã¡ã¤ã«ã®ä¸ã«ããã¤ãã®å人æ å ±ãä»ãå ãã¦ããã¨ä¾¿å©ãªã®ã§ã~/.vimrcãã¡ã¤ã«ãéãã¦ä»¥ä¸ã®ãããª3è¡ã追å ãããã let g:BASH_AuthorName = 'Your Name' let g:BASH_Email = 'my@email.com' let g:BASH_Company = 'Company Name
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}