ãããã¤ã³ã¹ãã¼ã«ä»£è¡¨ã®ã©ã¤ãããã¯ããã°
Vimã®ä¸ã§Shellæ©è½ãå®ç¾ãããã©ã°ã¤ã³ã ä½è ã¯neocomplcacheã¨åãShougoæ° ç»é¢ã¯ãããªæããå³å´ãVimShellã è£å®æ©è½ãããã㪠以ä¸ãæ©è½ã®æç² vimshellã®ä»£è¡¨çæ©è½ ã»è²åã ã»ãã¹ã㪠ã»ä»ã®ãã©ã°ã¤ã³ã¨ã®é£æº ã»ãã£ã¬ã¯ããªã¹ã¿ã㯠ã»auto_cd ã»ã¹ã¯ãªããå®è¡ ã»ã·ã§ã«å¼ã³åºã ã»ã¯ã³ã©ã¤ãã¼å¯¾å¿ ã»ç°¡æé»å ã»ãã©ã°ã¤ã³ã«ããæ©è½æ¡å¼µ ã»aliasã³ãã³ã ã»ã·ã§ã«å¤æ°ãã©ã ã»éåæå®è¡ï¼å®é¨çæ©è½ï¼ ã»ç¬èªã®ã«ã¬ã³ããã£ã¬ã¯ã㪠ã»vimã³ãã³ã ã»ã³ãã³ãã©ã¤ã³ã¹ã¿ã㯠2åç®ã®å®è¡ã¯ã«ã¼ã½ã«åããã¦ãã§å®è¡ã§ããã®ã§æ¥½ã¡ãã é常ã®ãããã¡ã¨åãããã«èªç±ã«ç§»åã§ãã¦visualã¢ã¼ãã§é¸æãã¦yankã¨ãç°¡åã«ã§ããã cdããã¨ãpushdã¨ããããªãã¦ããã£ã¬ã¯ããªãè¨æ¶ããã®ã§popdã§å ã«æ»ããã å®è¡çµæã
gitã®ãã©ã³ãåãããã³ããã«è¡¨ç¤ºããã¨çµæ§ä¾¿å© ã®ç¶ãã gitã§commitãå¿ããpushãå¿ããªãããã«ã _color_() { color=$1; shift echo -e "\e[${color}${@}\e[0m" } fg_black() { _color_ "30m" $@; } fg_BLACK() { _color_ "30;1m" $@; } fg_red() { _color_ "31m" $@; } fg_RED() { _color_ "31;1m" $@; } fg_green() { _color_ "32m" $@; } fg_GREEN() { _color_ "32;1m" $@; } fg_yellow() { _color_ "33m" $@; } fg_YELLOW() { _color_ "33;1m" $@; } fg_blue()
ã¯ã³ã©ã¤ãã¼ï¼1è¡ã¹ã¯ãªããï¼ã®ä»£åè©ã¨è¨ãã°Perlã§ããã*1ãPerlã«ã¯ã¯ã³ã©ã¤ãã¼åãã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ãå¤æ°ç¨æããã¦ãã¾ããä¸ã§ã-neãªãã·ã§ã³ã-peãªãã·ã§ã³ã¯å¼·åã§ãå ¥åè¡ãã¨ã®å¦çãã«ã¼ãã使ããã«ç°¡æ½ã«è¨è¿°ã§ãã¾ããPerlã®ã¯ã³ã©ã¤ãã¼åãã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ã®ä¸é¨ã¯Rubyã«ãè¼¸å ¥ããã¦ãããRubyããã°ã©ããã¯ã³ã©ã¤ãã¼ãæ¸ããã¨ãå¤ãããã«è¦ãã¾ãã ããã«æ¯ã¹ãã¨PHPã¯ã¯ã³ã©ã¤ãã¼ãæ¸ãã«ããå°è±¡ãããã®ã§ã¯ãªãã§ãããããåãããæã£ã¦ãã¾ããããå®ã¯PHP5.0.0ããã¯ã³ã©ã¤ãã¼åãã®ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ã追å ããã¦ãã¾ãããããä»åç´¹ä»ãã-Rã-Fã-Bã-Eã§ãã -Rãªãã·ã§ã³ã-Fãªãã·ã§ã³ -Rã¨ããã®ã¯ãæ¨æºå ¥åã1è¡ãã¨ã«é ã«å¦çãããªãã·ã§ã³ã§ããä¾ãè¦ã¦ã¿ã¾ãããã $ ls bin/php-* bin/ph
æå¤ã¨ç¥ããã¦ããªãããã ãã"find"ã¯Linuxã«å«ã¾ãã¦ããç çã®ãã¼ã«ã ãfindã§ã¯ãååããã¡ã¤ã«ãµã¤ãºãæ´æ°æ¥ãªã©å¤æ°ã®æ¡ä»¶ã§ãã¡ã¤ã«ãæ¤ç´¢ãããã¨ãã§ãããfindãç¨ãããã¨ã§ãä»ã¾ã§æéãããã¦æä½æ¥ã§æ¢ããªããã°ãªããªãã£ããã¡ã¤ã«ããç°¡åã«æ¤ç´¢ã§ããããã«ãªãã ããã æãåç´ãªä½¿ãæ¹ãã説æããããfindãç¨ãã¦ã·ã¹ãã å ã«ãããã¹ã¦ã®ãã¡ã¤ã«ã表示ããã«ã¯ã以ä¸ã®ããã«å ¥åããã $ find / ãã®ããã«å ¥åããã¨ããã¹ã¦ã®ãã¡ã¤ã«ã®ä¸è¦§ã表示ããããç¹å®ã®ãã¡ã¤ã«åã§æ¤ç´¢ãããå ´åã«ã¯ã次ã®ããã«è¡ãã $ find / -name passwd /usr/bin/passwd /usr/sbin/passwd ... ã¾ããpasswdã¨ããååã§ããã¤ãã¼ããã·ã§ã³ã0700ã®ãã¡ã¤ã«ãæ¤ç´¢ãããå ´åã¯ã次ã®ããã«å ¥åããã°ããã $ find /
GNU/Linuxã·ã¹ãã ãæ大éã«æ´»ç¨ããã«ã¯ããã¯ãã³ãã³ãããã³ããã¨ã·ã§ã«ã¹ã¯ãªããã¸ã®ç¿çãæ¬ ãããªããã¨ã¯ãããããããå¦çã¯ãªãã¹ãææ©ãæ¸ã¾ããããã®ã ãæ¬ç¨¿ã§ã¯ãã³ãã³ãã©ã¤ã³ã§ã®ä½æ¥ã®æéãæå°åãã¦ãããå¼·åãªæ¹æ³ã¨ãã¦ãã·ã§ã«ã®ã¨ã¤ãªã¢ã¹ã¨é¢æ°ãç´¹ä»ããã ããã§ã¯bashãä¾ã«ã¨ã£ã¦èª¬æãããã以ä¸ã«ç¤ºãæ¦å¿µã®ãã¹ã¦ã¨ã³ã¼ãã®å¤§åã¯ãã®ä»ã®ã·ã§ã«ã§ãéç¨ããã ã·ã§ã«ã®ã¨ã¤ãªã¢ã¹ã¨ã¯ãé »ç¹ã«å®è¡ããé·ãã³ãã³ããè¦ããããããããã«ä»ããå¥åã®ãã¨ã§ãããã³ãã³ãã©ã¤ã³ããå ¥åãããæååã«å¯¾ããã·ã§ã«ã¯ã¾ãè¨å®æ¸ã¿ã¨ã¤ãªã¢ã¹ã®ä¸è¦§ã¨ã®ãããã³ã°ãè¡ããä¸è´ãããã®ãããã°ããã®ã¨ã¤ãªã¢ã¹ã¯å¯¾å¿ããããã¹ãã«ç½®ãæããããçµæã¨ãã¦å¾ãããã³ãã³ãã©ã¤ã³å ¨ä½ã®è©ä¾¡ã¨å®è¡ãè¡ãããã以ä¸ã«ãã¨ã¤ãªã¢ã¹å®ç¾©ã®ä¾ã示ãã alias sqlmanage='mysql -
UNIXãLinuxã®ã¨ãã¹ãã¼ãã«ãªãã®ã«é¿ãã¦éããªãã®ããBashã«ä»£è¡¨ãããã³ãã³ãã©ã¤ã³ã·ã§ã«ã«ããæä½ã ãããã§æ¬è¨äºã§ã¯ããBashã®ã«ã¹ã¿ãã¤ãºããã·ã§ã«ã¹ã¯ãªããã®é«çãã¯ããã¯ããBash以å¤ã®é«æ©è½ã·ã§ã«ãã®3ã¤ã«ã¤ãã¦ãSourceForge.JP Magazineã§éå»ã«æ²è¼ããã解説è¨äºãç´¹ä»ããã Bashãã«ã¹ã¿ãã¤ãºãã¦ä½¿ãããªã Bashã¯é常ã«ã«ã¹ã¿ãã¤ãºã®å¹ ãåºããã¾ãã¡ãã£ã¨ããæ¹è¯ãç°¡åãªã·ã§ã«ã¹ã¯ãªããã®å©ç¨ã«ããã大ããä½æ¥å¹çãæ¹åãããããã§ã¯ãBashã®ã«ã¹ã¿ãã¤ãºãã¯ããã¯ã解説ããè¨äºãç´¹ä»ããã ã³ãã³ãã©ã¤ã³ã§ã·ã§ã«ã®ã¨ã¤ãªã¢ã¹ã¨é¢æ°ã使ã£ã¦ä½æ¥ãå¹çåãã GNU/Linuxã·ã¹ãã ãæ大éã«æ´»ç¨ããã«ã¯ããã¯ãã³ãã³ãããã³ããã¨ã·ã§ã«ã¹ã¯ãªããã¸ã®ç¿çãæ¬ ãããªããã¨ã¯ãããããããå¦çã¯ãªãã¹ãææ©ãæ¸ã¾ããããã®ã ãæ¬
gitã®é å¸ç©ã«å«ã¾ãã contrib/completion/git-completion.bash ã . ããã¨ãgitã®ãµãã³ãã³ããããã«å¿ãããªãã·ã§ã³ãå ãã¦~/.gitconfigã§èªåç¨ã«aliasãããµãã³ãã³ãã¾ã§è£å®ãã¦ãããããã«ãªããå°å¦çãã«ã£ããã§ãã åãã git-completion.bash ã®ä¸ã§å®ç¾©ããã¦ãé¢æ° __git_ps1 ã使ã£ã¦ã·ã§ã«ããã³ãã($PS1)ãè¨å®ããã¨ã #... if [ -r "$HOME/.bash_completion.d/git" ]; then # = git-completion.bash # boldã«ããã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ã¯çç¥ãã¦ã¾ã PS1="${PS1}[\$(__git_ps1 \"%s)\")\w]\\$ " else PS1="${PS1}[\w]\\$ " fi #...ãããªãµãã«g
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}