You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
# HTML ãã¡ã¤ã«ããã£ãã¨ã㦠... % ls index.html # ãããç´æ¥æå®ãã % index.html # index.html ã Firefox ã§éããã # ã¾ãã¯æ示çã«é¢æ°ãæå®ãã¦ãOKã % pick-web-browser index.html # ãã¡ã¤ã«ã¨ãã¦åå¨ããªãã¦ããURLãéããã¨ãã§ããã % pick-web-browser "https://www.google.co.jp/search?q=zsh"
å®è¡æéãé·ãã³ãã³ããçµãã£ãããzshãåæã«Growléç¥ãã¦ãã (Mac/Linux/SSHæ¥ç¶å )ZshMacLinuxGrowlMacOSX Linuxã«ã¼ãã«ã®makeã¨ããå®è¡ã«æéã®ãããã³ãã³ããå®è¡ãã¦ãçµããã®ãå¾ ã£ã¦çºããã®ã¯è¾ããã§ããã®éã«å¥ã®ãã¨ãããã¨ããã®ã¾ã¾å®äºãå¾ ã£ã¦ããã®ãå¿ãã¦ãã¾ã£ã¦æéãç¡é§ã«ããæ°æã¡ã«ãªã£ã¦è¾ãã&& growlnotify ã¨ãã³ãã³ãã®å¾ã«ã¤ããã®ãå¿ãããã¨ã«æ°ãã¤ãã¦ãCtrl-Cã§ä¸æ¦æ¢ãããã©ããæ©ãã®ãè¾ãã ã¨ãããã㧠zshã®ããã¯ãé©å½ã«ä½¿ã£ã¦ãæ®éã«zshã§ã³ãã³ããå©ãã ãã§ãé¾å¤ä»¥ä¸ã®æéããããã³ãã³ããçµããã¨éç¥ãã¦ãããè¨å®ãèãã¦ã¿ãã Macã®Growl å¯¾å¿ ( growlnotify å¿ é ) Linuxã®ãã¹ã¯ãããéç¥å¯¾å¿ ( notify-send å¿ é ) SSHæ¥ç¶å
ã¨ããæ¹ã® "ã¨ã³ã¿ã¼ã ã㧠ls 㨠git status 表示ããããã«ãã¦ãã" ã¨ããã¤ã¶ãããè¦ã¦ä¾¿å©ããã ã¨æã£ãã®ã§ãã£ã¦ã¿ã¾ããã åºæ¬çãªããæ¹ã¯ä»¥ä¸ã®è¨äºãåèã«ãªãã¾ããã zshã§ã³ãã³ãã空ã®ç¶æ ã§enteræ¼ããã¨ãã«ä»»æã®ã³ãã³ããå®è¡ããæ¹æ³ - kei_q ãã ãä¸è¨æ¹æ³ã§ã¯ç§ã®ç°å¢ã®å ´åãããã³ããã1åä½åã«è¡¨ç¤ºããã¦ãã¾ã£ã¦æ°æã¡ãæªãã®ã§ããã®è¾ºããæãå ãã¾ããã Installation 以ä¸ã¹ã¯ãªããã .zshrc ã«è¨è¿°ããã°ãä½ãå ¥åããã¦ããªãç¶æ 㧠Enter ãæã¤ã ã㧠ls 㨠git status ã表示ãããããã«ãªãã¾ãã function do_enter() { if [ -n "$BUFFER" ]; then zle accept-line return 0 fi echo ls # âãããã # ls_abb
ä¸è¬ç㪠Web Programmer ãªãã°ãHTTP Status code ã¯ãã¹ã¦æè¨ãã¦ããã¨èãã¾ããã ããããåã¯åå¿è ãªã®ã§ããªããªãè¦ãããã¦ããªãã®ã§ãHTTPã®ã¹ãã¼ã¿ã¹ã³ã¼ãããããã®ã«ä¾¿å©ãªãã¼ã«ãç¨æãã¾ããã _httpstatus ã§ããã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ _httpstatus ãfpathã®éã£ãã¨ããã«ç½®ãzshãåèµ·åããã ãã§ãã (注æï¼httpstatusã³ãã³ãæ¬ä½ã¯å«ã¾ãã¦ããã¾ãã) yonchu/_httpstatus.zsh - gist $ cp _httpstatus /usr/local/share/zsh/site-functions $ exec zsh 700çªä»¥éã¯â¦ä¾ã®ã¢ã¬ã§ãã ä»æ¥ã®åèæç®: httpstatus ã³ãã³ãã§ãHTTP ã®ã¹ãã¼ã¿ã¹ã³ã¼ãããã°ããããã¹ã! - tokuhirom's blog
zsh 㧠Git 使ã£ã¦ã人ã¯ããã³ããã«ãã©ã³ãåã¨ãã表示ãã¦ã人ãå¤ãã¨æãã zsh ã«æ¨æºã§å ¥ã£ã¦ã vcs_info ã£ã¦ããã®ã使ãã¨ã ãããããæãã«ã§ãããã ãã©ãã§ããªããã¨ãå½ç¶ããã ä¾ãã° stash ããæ°ã®è¡¨ç¤ºã«ã¯å¯¾å¿ãã¦ããªãã®ã§ãèªåã§ç¡çç¢çãªæã㧠Git ã³ãã³ããå¼ã³åºãã¦ããã³ããã«è¡¨ç¤ºãã¦ã人ãããã¨æãã ã§ã zsh 4.3.11 ããããã vcs_info ã« Hooks ã¨ããã®ã追å ããã¦ãå ã®æ©è½ã«èªåã§å¦çã追å ã§ããããã«ãªã£ã¦ããããã使ãã¨å¥½ããªããã«ã«ã¹ã¿ãã¤ãºã§ããããã«ãªãã®ã§ç´¹ä»ããã ãã®è¨äºã§ã§ããããã«ãªãã㨠ãããªãã¨ãããã³ããã«è¡¨ç¤ºã§ããããã«ãªãã 使ç¨ãã¦ãããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã®åå(svn, git, hg, ...) ç¾å¨ã®ãã©ã³ãå ãã¼ã¸å¤±æã®ã¨ã©ã¼è¡¨ç¤º ããã« Git ã®å ´åã¯ä»¥ä¸
ã³ãã³ãã©ã¤ã³ã®ããã³ããã«åã£ã¦ã¿ãã®ã¯æ¥½ããã bashã§ã¯ããåã®ã³ãã³ãã®è¿ãå¤ã«ãã£ã¦ãéãé¡æåãåºããã¨ããããã³ããã使ã£ã¦ããã åã®ã³ãã³ããæåãã¦ããã° ^-^ ã¨å¾®ç¬ã¿ã失æããã° O_O ã¨ãï¼ ã¨ããé¡ãããã PS1="\`if [[ "\$?" = "\"0\"" ]]; then echo \[\e[36m\]^-^\[\e[0m\]; else echo \[\e[31m\]O_O\[\e[0m\]; fi\` " æè¿zshã使ãå§ããã®ã ããzshã§ã©ããã£ããåããã¨ãã§ããã ãããã zshã®ããã¥ã¢ã«ã¯è¨å¤§ããã¦ããã¤ãã®ãã¼ãã«åããã¦ããããå°ãè¦ã¤ãã«ããããããã³ããã«ã¤ãã¦ã¯ man zshmisc ã®æå¾ã®æ¹ã«è¼ã£ã¦ãã %? : ç´åã®ã³ãã³ãã®return statusï¼æ»ãå¤ï¼ %F : æåè²ãå¤ããã %F{red
æ©æ¬åä¼ Â» ã¿ã¼ããã«ã§ä½¿ãtwitterã¯ã©ã¤ã¢ã³ãä½ã£ã glidenote/tw-zsh-completion @shokaiããã®ä½ã£ããã¿ã¼ããã«ä¸ã§å©ç¨ãã twitterã¯ã©ã¤ã¢ã³ãtwãé常ã«ä¾¿å©ãªã®ã§ãzshè£å®é¢æ°ãä½ã£ãã git cloneãã¦/usr/share/zsh/site-functions/ã/usr/local/share/zsh/site-functions/ãªã© zsh functionsã«å ¥ããã°ä¸è¨ã®ãããªæãã§åãã¾ãã
æçµæ´æ° 2017-06-20 UNIX/Linux ã® test ã³ãã³ãã¯ã主ã«ã·ã§ã«ã¹ã¯ãªããã§ä½¿ããããæ¡ä»¶å¤å®ã®ããã®ã³ãã³ãã§ããã
id:tokuhirom ã® zsh ã® REPORTTIME ã¿ãããªã®ãtcsh 㧠miyagawa ããããã£ã¦ãã®ã¿ã¦ãããªã¼ã¨ããã£ã¦ããã© zsh ã§ã§ãããã ã¼ ã£ã¦çºè¨ãè¦ã¦ REPORTTIME ã£ã¦ç¥ããªãã£ããã¼ 5 å¹´ããã zsh 使ã£ã¦ãã®ã«ç¥ããªãã£ããã¼ ã£ã¦æã£ãã®ã§èª¿ã¹ã¦ã¿ã # 3ç§ä»¥ä¸ããã£ãå¦çã¯è©³ç´°è¡¨ç¤º REPORTTIME=3 ã£ã¦ .zshrc ã¨ãã«æå®ãã¦ãã㨠$ rails new hoge --- Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. rails new hoge 15.69s user 0.33s system 84% cpu 18.872 totalã£ã¦è¡¨ç¤ºãããï¼ï¼ï¼ 便å©ï¼ï¼
ç·ã®bashã¦ã¼ã¶ã¼ãããã©è²ã®ç´³å£«ãã¨æ¼¢ã®zshã«ä¹ãæããã¨ã㫠アッーã£ã¦ãªãã³ãäºãå ã»ã©ããã¤ãæãã¤ããã®ã§å ±æããã !!ã¨ãã®å±¥æ´å®è¡ã¯rã³ãã³ã㧠zshã«ã¯ãr ã¨ããã·ã§ã«çµã¿è¾¼ã¿ã³ãã³ãããã£ã¦ å±¥æ´ããã®å®è¡ãç°¡åã«è¡ããã ãã¨ãã°ãä¸çªæå¾ã«å®è¡ããviã³ãã³ããå®è¡ãããã¨ããªã©ã ã bashãªããã 㨠!vi ã§åºæ¥ãã®ã ãã rã³ãã³ãã ã£ãã % r vi ã§ããã ç´åã«å®è¡ããã³ãã³ããåã³å®è¡ãããã¨ãã bashãªããã 㨠!! ã¨ããããæ¹ã«ãªããã rã³ãã³ãã§ã¯ã % r ã¨ããã ãã§ããã ã¾ããæååãç½®ãæãã¦ããã®å±¥æ´å®è¡ã¯ã©ãã ããã ãã¨ãã°æ¬¡ã®ãããªbashã®ä¾ã ã $ vi .zshrc $ !vi:s/zsh/bash/ ããã¯ãæå¾ã«å®è¡ããviã³ãã³ãã®å¼æ°æååã ":s/zsh/bash/" ã«ããzshã¨ããæ
2012/12/13 è¿½è¨ zsh 4.3.11 以éã®æ°ããæ©è½ã使ã£ã¦æ¹è¯ãã¾ããã -> ãzsh ã® vcs_info ã«ç¬èªã®å¦çã追å ã㦠stash æ°ã¨ã push ãã¦ããªã件æ°ã¨ãä½ã§ã表示ãã - Qiitaã Git ã使ã£ã¦ãã¡ã¤ã«ãç·¨éããå ´åãããããã£ããã¤ã³ããã¯ã¹ã«è¿½å (add)ãã¦ãã®å¾ã³ãããã£ã¦ã®ãåºæ¬çãªæµãã«ãªãããªãããããããã£ã¦ãã¨ãã¡ãã㨠add ããã®ãã©ããããããªããªããã¨ãããã ããããã¨ã㯠status ã³ãã³ã使ãã°ãããã ãã©ã以åã¨ã³ããªæ¸ãã zsh ã® vcs_info ã®æ©è½ã使ãã¨ããæãã«ããã³ããã«è¡¨ç¤ºã§ããããã«ãªãã®ã§ç´¹ä»ããã zshrc ã®æ¸ãæ¹ ãããªé¢¨ã« zshrc ã«æ¸ãã¦ããã° OKã autoload -Uz add-zsh-hook autoload -Uz colors color
Git Advent Calendar / Jun. 6/12 æ å½@T_Hashã§ãã ææ¥ãä»äºã§ã ããã®ã§ãããæ æ°ã¯ããã°ã©ãã®ç¾å¾³ã¨ããã¾ããã¨ããããã§åãæ¥ã ã®ä»äºã§æ æ°ã«gitã使ãããã®è¨å®ãå ±æãããã¨æãã¾ãã zsh âãåèã«ããè¨å®ã.zshrcã«è¨è¿°ãã¦ãå³ããã³ããã«ãã©ã³ãåã¨ã¹ãã¼ã¿ã¹ã表示ããã¦ãã¾ããã³ãã³ããå©ããã«ç¶æ ãè¦ãã¦é常ã«ä¾¿å©ã§ãã git ã®ãã©ã³ãå ã¨ä½æ¥ç¶æ ã zsh ã®å³ããã³ããã«è¡¨ç¤ºï¼ status ã«å¿ãã¦è²ãã¤ãã¦ã¿ã ç·ã ã¨ã¯ãªã¼ã³ãªç¶æ ã赤ã ã¨æªã³ãããã®å¤æ´ãããã¾ãããç·ãæ£å¸¸ãªç¶æ ãç·ã«æ»ã£ã¦æ¥ããä¸æ®µè½ãã¦ã³ã¼ãã¼é£²ãããã¨ãèããªããä½æ¥ããã¦ã¾ãã ãã¨ãzshã¯gitã®ã³ãã³ããè£å®ãã¦ãããã®ã§å°å³ã«éå®ãã¾ãã gst: git status git statusã¯å¸¸ã«å©ãã¯ã»ãä»ããæ¹ãããã¨
2014-09-02æ´æ°ï¼pcre ã¢ã¸ã¥ã¼ã«ã使ããªããã¼ã¸ã§ã³ã«å·®ãæ»ã 以åã®ã¨ã³ããªã§æ²è¼ããã³ã¼ããæ¹è¯ãã¦ã git ã®ä½æ¥ç¶æ ï¼merge ãã³ã³ããªã¯ãã§ä¸æãã¦ãã¨ã interactive rebase ä¸ã ã¨ãï¼ã表示ããããã«ãã¦ã¿ãã 以åã®ããã«å ã㦠merge ä¸ã¯ãããªããªãã¾ãã ã¤ã¾ãã ä½æ¥ãã£ã¬ã¯ããªãã¯ãªã¼ã³ãªãç· è¿½è·¡ããã¦ããªããã¡ã¤ã«ãããã¨ãã¯é»è² 追跡ããã¦ãããã¡ã¤ã«ã«å¤æ´ãããã¨ãã¯èµ¤ å¤æ´ããï¼æªè¿½è·¡ãã¡ã¤ã«ããã§å¤ªåã®èµ¤ merge ã rebase ã®éä¸ãªãã«ãã³å ã«è¡¨ç¤º ã§ãã ã³ã¼ã autoload -Uz VCS_INFO_get_data_git; VCS_INFO_get_data_git 2> /dev/null function rprompt-git-current-branch { local name
zshã«ãããgitã®è£å®é¢æ°ã®å®è£ ã¯ãã¾ãã¡ã§ãããzsh + git使ãã¯zshã®è£å®é¢æ°_gitãéãããã! ãã®2ã®ãããªå¯¾æçãè¬ããããgitã®ã¨ãã ãbashã使ãããã¦ãã¾ãããåã¯ä¸ææå¾è ã§ããã ãã¦gitã®tarballã«contrib/completion/git-completion.bashã¨ããã®ãããã®ã¯ãã£ã¼ããªgit使ããªããåç¥ãã¨æãã¾ããæ®å¿µãªãããã¡ã¤ã«åã®éãbashã§ãã使ãã¾ããã§ããããv1.7.4-rc0ã§zsh compatibleã«ãªãã¾ãã add the following lines to your .zshrc: autoload bashcompinit bashcompinit source ~/.git-completion.sh ã¨æ示éãã«.zshrcã«è¿½è¨ããã ãã§zshã§ãbashãªã¿ã®å¿«é©ãã§gitã使ã
水風åã®ããã æ¯æ¥ãã¡ããã¡ãã«æãã ããæ°å¹´ãããã!ãããããããã®ããã«æ¼éã¯å¤ªé½ã¨ãªãã£ã¹ãã«ã¨ã¢ã¹ãã¡ã«ãã®ä¸æ¹åããæ¼ãå¯ãã35âãªã¼ãã¼ã®ç±ã«æã¾ããå¤ã«ãªã£ã¦ãæä½æ°æ¸©ã27âãããã¾ã§ããä¸ãããªãããããªçä¸å°½ãªæ±äº¬éã®ä¸ã®æ®ãããæ¯å¹´ã®ãã¨ã«ãªâ¦
ã¯ã¦ãªããã°ã使ã£ã¦ã¿ã. ããã¯ããã! ã¾ã, ãã¢ã§è£å®åè£ãã°ã«ã¼ãå¥ã«ã¡ãã¥ã¼è¡¨ç¤ºããã¦ããã®ãã«ãã³ããã£ãã®ã§çä¼¼ãã¦ã¿ã. setopt auto_list auto_param_slash list_packed rec_exact unsetopt list_beep zstyle ':completion:*' menu select zstyle ':completion:*' format '%F{white}%d%f' zstyle ':completion:*' group-name '' zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' zstyle ':completion:*' keep-prefix zstyle ':completion:*' completer _oldlist _complet
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}