Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives⢠on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives
bashã®è£å®ã¯å ¬å¼ã§æä¾ããã¦ããããgruntã®zshè£å®ããªãã£ãã®ã§ä½ã£ãã ç§ãåå¨ãç¥ããªãã ããããããªãã®ã§ãç¥ã£ã¦ãæ¹ããããæãã¦ãã ããã (zsh-completions 㨠oh-my-zsh ã«ã¯ãªãã£ãã1ã¤ã ãgithubã«ãã£ããã©å¾®å¦ã ã£ãã) ã¡ãªã¿ã«å ¬å¼ã®bashè£å®ã¯ã以ä¸ã®è¨å®ã .bashrc ãªã©ã«è¨è¿°ããã°ä½¿ç¨åºæ¥ã¾ãã eval "$(grunt --completion=bash)" zshè£å®ã¤ã¡ã¼ã¸ ã¤ã³ã¹ãã¼ã«æ¹æ³ Githubã«ç½®ãã¦ããã®ã§ã¨ã£ã¦ãã¦ä¸ããã yonchu/grunt-zsh-completion · GitHub $ git clone git://github.com/yonchu/grunt-zsh-completion.git or $ wget https://github.com/yonchu/gr
ä»äºã§git使ã£ã¦ãã¦ã¬ãã¥ã¼ã¨ããã¦ããã¨ãã©ããgitã®ãã©ã³ãåãæ¿ããã ãããªã£ã¦ãããããã§ãzawã§æ´æ°æ¥æé ã§ãã©ã³ãã並ãã§ãã¦ãé¸æããã¨git checkoutåºæ¥ãã°ããã«ãã©ã³ãåãæ¿ããåºæ¥ã¦ä¾¿å©ã§ã¯ã¨æããã£ã¦ã¿ãã bindãããã¼ãæ¼ãã¨ãæ´æ°æ¥æé ã§ãã©ã³ãã表示ããã¦ãEnterãæ¼ãã¨ãã§ãã¯ã¢ã¦ããããæ´æ°æ¥æé ãªã®ã§æ°åãã¼ãæ¼ãã ãã§ããã§ãã¯ã¢ã¦ãããããã©ã³ãã«è¾¿ãçãããã¨ãå¤ããzawã使ã£ã¦ããã®ã§çµãè¾¼ã¿ãåºæ¥ãã ã¤ã³ã¹ãã¼ã« zawã使ã£ã¦ããã°ãå°å ¥ã¯ç°¡åã ã¾ãzawã®sourceã®ãã£ã¬ã¯ããªã«ä»¥ä¸ã®ãã¡ã¤ã«ãç½®ãããããã¯é©å½ãªã¨ããã«ç½®ãã¦ãzawã®loadã®å¾ã«sourceã使ã£ã¦loadããã https://github.com/shibayu36/config-file/blob/master/.zsh/zaw-
ã¾ã, ä»ã®ã·ã§ã«ãã使ãã®äººã«ã¯ããããªãã. aliasã³ãã³ãã®-sã使ããã®ã¯ zsh 4.2.x- ã§, ä»ã®ã·ã§ã«ã§ã¯å®è£ ããã¦ããªãã¨æãã¾ã. ãã¨, ããæ¢ã« alias -s ç¥ã£ã¦ããã¼ã£ã¦äººã¯èªã¾ãªãã¦ããã§ã. alias -s ã£ã¦ä½ï¼ æã£ãã³ãã³ãã®å¾ã(suffix)ãè¦ã¦, é©å½ã«å®ãããã£ã¦ããããã¤ã§ã. 次ã®ä¾ãè¦ã¦ä¸ãã. ~$ echo "print ('hello, world')" > hello.py ~$ python hello.py hello, world ~$ alias -s py=python py=python ~$ ./hello.py hello, world ~$ Pythonã®ã³ã¼ã㯠python hello.py ã§å®è¡åºæ¥ã¾ãã, ãå°»ã py ãªã python ã使ãã¾ã, ã¨aliasãã¦ããã°, ./
â autojump ãã z ã«ä¹ãæãã naoya ããã autojump ãã z ã¨è¨ã£ã¦ããã®ã§ä¹ãæãã¦ã¿ãã ãã brew ã§ã¯ãªã knu ããã® fork edition ã使ããã¨ã«ããããã¨ããªã¬ã¯ zsh.d ã¯å ¨é¨ dropbox ã«çªã£è¾¼ãã§è¤æ°ã®ãã·ã³ã§å ±éåãã¦ããã®ã§ãgit submodule add ããã®ããã®ä¸ã§ã å¾ã¯ä»¥ä¸ã®ããã«è¨å®ãã¦ã ãããåããã export _Z_CMD=j export _Z_DATA=$DROPBOX/config/history.dotfiles/dot.$USER.z . ~/.zsh.d/z/z.sh z ã¯ãã¹ããªã¼ãã¡ã¤ã«ã®ä¸ã§ãã·ã³ã«åå¨ããªããã¹ãã¾ãã£ã¨æ¶ãã¦ãã¾ãã¿ããã§ãã¦ã¼ã¶ã¼åãç°ãªããã·ã³ã ã¨ä½¿ãç©ã«ãªããªããããªã®ã§ã$USER ã§æ¯ãåããããã«ãããå¿ãªãã autojump
ã¯ããã« ä»äºãªã©ã§è§¦ã£ã¦ããæéãé·ãã®ãã¨ãã£ã¿ã¼ãããã¨ã·ã§ã«ã§ãã ä»åã¯ãããªè§¦ã£ã¦ããæéãé·ãã·ã§ã«ããã¤ãã®ä¸ã§ãZshãããããããæ¹æ³ãæ¸ãã¦ããã¾ãã ãªãããã®è¨äºã¯ä»¥ä¸ã®è¨äºãåèã«ãã¦ãã¾ãã å¯æãzshã®ä½ãæ¹ - ããã°ã©ã ã¢ã°ã¢ã° å®æå½¢ 以ä¸ã®ç»åã®éãã¨ãªãã¾ããããããã§ãããé å¼µã£ã¦ããæ§åãè¦åãããã¾ãã ã¡ãªã¿ã«ãé¡æåã®ã¢ãã¼ãã¯éå»æå±ãã¦ããä¼ç¤¾ã®ç¤¾å IRCã«ä½ã¿çãã¦ããunazu_kunã¨ããbotãå ã¨ãªã£ã¦ãã¾ãã ããã³ããã§ä½¿ãããã®é¢æ°å®ç¾© è¨å®ã¯ããããé¢æ°ã«åãåºãã¦åããã³ããå ã§evalãã¦ä½¿ãå½¢ã«ããã¨è¦ãããããªã¨æã£ã¦ãã¾ãã 以ä¸ã®3ã¤ã®é¢æ°ã¯ .zshrc å ã«ç¾ åãã¦ãæ§ãã¾ããã
Anything.elã©ã¤ã¯ãªCUIã®zaw.zshãcanythingãMendeleyãgistyãz(ãããã¯j)ã¨ä½¿ãè¨å® ãããªã®âãããè¨å®ã§ã (zaw.zsh 㧠Mendely ã§ç®¡çãã¦ããè«æPDFãé¸ãã§ããæ§å): ã·ã§ã«ç°å¢ã§ä½¿ãã anything.el ã©ã¤ã¯ãªç°å¢ã¯ zaw.zsh 㨠canything ã®ãµãã¤ããã (ãã£ã¨ãããã?)ã zaw.zsh zsh ã§ã anything.el ã£ã½ãã® - memo nakamuray/zaw - GitHub zshã®anything.elãunite.vimã£ã½ãæ©è½ãå®ç¾ããzaw.zshã®ç°¡åãªç´¹ä»ã¨ãäºãsourceãæå®ãããã¼ãã¤ã³ããè¨å®ããæ¹æ³ - kei_qã¡ã¢ zaw.zshã§git show-branchã®åºåãçºãã¤ã¤ã³ããããé¸æãããã - hchbawè¨ zsh ã®éè¡
zaw.zshã便å©ã ã£ãã®ã§ãcddãããã§é£ã¹ãããã«ããããªã¼ã£ã¦ãã§ãxaicronããçcddãè£å®ã½ã¼ã¹ã«ãã¦å®è¡ã§ããããã«ãã¦ã¿ãã以ä¸ã§åä½ç¢ºèªãã¦ããã xaicronããçcdd zsh 4.3.15 (x86_64-apple-darwin11.2.0) tmux 1.5 zawã¯æ¢ã«ä½¿ã£ã¦ããåæã§ãzawãgit cloneãã¦ããä¸ã«ããsourcesãã£ã¬ã¯ããªã«ã以ä¸ãã¤ã£ããã ãã ãã§ãã£ã¦.zshrcããªãã¼ãããã¨ãfilterã«cddã追å ããã¦ãããã¾ãã以ä¸ã®ããã«bindkeyã追å ãã¦ããã¨ãC-uã§ããã«åè£è¡¨ç¤ºãããã¦ãè£å®ã«å ¥ããã¨ãã§ããã bindkey '^U' zaw-cdd zaw.zshè¶ ä¾¿å©!!1
ã¡ãã£ã¨ãã¤è¤éãªãã¨ããã£ã¦ãã£ã¦ããã®ã§ãããæ£ç´ã¾ã èªåã§ä½ã£ã¦ããã¤ã¡ã¼ã¸ãã¤ãã¦ãã¾ããã å éã¨æ¸éï¼ã¤ã¼ã¸ã³ã°ã¿ã¤ã ã©ã¤ã³ããã«ã®ãã¬ã¼ã æ°ãã§ã¦ãã¨ãã®ä¸ã®ã¹ã©ã¤ãã¼ã§ã¯ã¼ã¯ã¨ãªã¢ã®å¹ ãæä½ã§ããã°ã©ãã¨ãã£ã¿ã¼ã¨ããã®ãåå¨ãããå¤ã°ã©ãã¨é度ã°ã©ããã°ã©ããç·¨éããã¨ãã«è§¦ãã®ã¯ãã³ãã«ã ãã¤ã¼ã¸ã³ã°ã®é度ãæ©ãã¦ã³ããè¦ããæã¯ã¢ã¼ã·ã§ã³ãã©ã¼ãããã(13:40)ã¢ã¼ã·ã§ã³ãã©ã¼ã¯è²ã ãã¾ããã¦ãã¾ãã®ã§æå¾ã«ã¤ããã»ãããããå¦çãéãããæåã®ã»ãã§ã¤ããã¨ãã¬ãã¥ã¼ã®ã¨ãã«ããã©ãã¨ããããï¼ãã ãã¬ãã¥ã¼ã®ã¨ãã ããªãã«ããã¨ããã§ããï¼
以åã«ä¸åº¦è¨å®ã¯ãã¦ããã®ã§ããã¡ãã£ã¨ããããªã¨ãã(screenããã¾ãèµ·åããªããæ¥æ¬èªãå ¥åã§ããªãã¨ã)ãããã¤ããã£ãã®ã§åè¨å®ãã¾ããã zsh-develãMacPortsã§ã¤ã³ã¹ãã¼ã«ãã ã©ãããæåããã¤ã³ã¹ãã¼ã«ããã¦ããzshã§ã¯ãã¼ã¸ã§ã³ã®4.24ã®ããæ¥æ¬èªãå ¥åã§ããªãã¿ãããªã®ã§MacPortsã§ãããã«4.3以ä¸ã®ãã®ãã¤ã³ã¹ãã¼ã«ããªããã¾ãã $sudu port install zsh-devel Enter password: ã¤ã³ã¹ãã¼ã«ãçµããã¨ã/opt/local/binã«zsh-4.3.4ãããã¯ãã§ãã ãã°ã¤ã³ã·ã§ã«ã®å¤æ´ ã¦ã¼ãã£ãªãã£ã®NetInfoããã¼ã¸ã£ãããã¯ãTerminalããchshãå®è¡ãã¦ãã°ã¤ã³ã·ã§ã«ãå¤æ´ãã¾ããä»åã¯chshã使ç¨ãã¦å¤æ´ãã¾ããã¡ãªã¿ã«Terminalã®ç°å¢è¨å®ã§ã·ã§ã«ãæå®ãã¦ããå ´å
é£çªã®ãã¡ã¤ã«ãããã¼ã£ã¨ãã£ãã¨ããè¤æ°ã®ãã¡ã¤ã«åãä¸æ°ã«ã¹ãã¼ãã«å¤ããããã¨ããããä¸åãã¤ã¡ã¾ã¡ã¾ãªãã¼ã ãªãã¦ãã£ã¦ãããªãããããªã¨ã㯠zsh ã® zmv ã使ãã¨ä¾¿å©ãªã®ã§ç´¹ä»ããã zmv ã§ä½ãã§ããã ä¾ãã°ãããªæã㧠1.txt ãã 6.txt ã¾ã§ãã¡ã¤ã«ããã£ãã¨ããã % ls 1.txt 3.txt 5.txt 2.txt 4.txt 6.txtã§ãããã¡ã¤ã«åçããã¦ãããã«ãããªã¼ãfile-1.txt ã¿ããã«é ã« file ã£ã¦ã¤ããããªã¼ãã£ã¦æã£ãã¨ãããã ãããªã¨ãã®ããã« zsh ã«ã¯ zmv ã£ã¦ã³ãã³ãããã£ã¦ããã®æã®ä¸æ¬ãªãã¼ã ãã¹ãã¼ãã«ã§ããããæ軽ãªä½¿ãæ¹ã¯ãããªæãã ããããã ~/.zshrc ã«ããæ¸ãã¦ããã¦ããã autoload -Uz zmv alias zmv='noglob zmv -W' ä¸åã®ã³ã
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
zshã使ãå§ããã¨ããã»ã¨ãã©ã®å ´åã¯ä»ã®ã·ã§ã«ããã®ä¹ãæãã¨ãªãã ãããä»åã¯ããããã±ã¼ã¹ãæ³å®ããä»ã®ã·ã§ã«ããzshã«ç§»è¡ããéã«ééããã¡ãªåé¡ã«ã©ã対å¦ãããã«ã¤ãã¦è¦ç¹ãçµã£ã¦è¿°ã¹ããã 決æ ã·ã§ã«ã¯æã«é¦´æã¾ãã¦ããå ãè¼ãéå ·ã§ããããããå¤æ´ããã®ã¯å¤§ããªæ±ºæã§ãã¡ãã£ã¨ããä¸å®ãä¼´ããã®ã§ãããå ¸åçã¨æãããäºé ã«ã¤ãã¦Q&Aå½¢å¼ã§ã¾ã¨ãã¦ã¿ãã Qï¼zshã便å©ãããªã®ã¯åãã£ããã ãããã®åzshã®ä½¿ããªãã¨ããã«è¡ã£ããå°ããã¨ã«ãªãããã Aï¼å¤§ä¸å¤«ãä»ã®ã·ã§ã«ã§ä½¿ãããªãã¦ããæ©è½ä»¥ä¸ã«ãzshã使ããããã«ãªã£ãã¨ãã«ã¯å ã®ã·ã§ã«ã«é¢ããç¥èãå¢ãã¦ããã¯ããzshã¯ãã©ããªå¤æ°å±éããã¹ããªå±éã§ãTabãã¼ã§æ£ç¢ºã«è£å®ãã¦ãããããifãwhileãfor ã®è¤æ°è¡ã«æ¸¡ãæ§æãã³ãã³ãã©ã¤ã³ã§ä½¿ã£ã¦ãè¡ã¨ãã£ã¿ã§ãã£ããåç·¨éã§ããã®ã§ãæèã
For the Whyday, I've hacked two ZSH scripts for completion of RVM and bundler 1.0. You can find them on my dotfile repository on github: http://github.com/nono/dotfiles/blob/master/zsh/Completion/_rvm and http://github.com/nono/dotfiles/blob/master/zsh/Completion/_bundler. To install them, you can put these 2 files in $HOME/.zsh/Completion (create this directory if it doesn't exist), and add it to
ã¿ã¤ãã«ã¯ããé£ããã¿ã®ãããªæ°ããããããã®è¨å®ããªããµã¼ãã§é·æéä½æ¥ããããªããã¨æãç¨åº¦ã«ã¯ä¾¿å©ãªã®ã§ãå人çã«ã¯é£ãã§ã¯ãªãã¨è¨ããã ctrl + ç¢å°ã§åèªåä½ã®ã«ã¼ã½ã«ç§»å ã³ãã³ãã®çãä¸ãããã«ééãããã£ãå ´åãä¿®æ£ããããã«ã«ã¼ã½ã«ã移åãããã®ã¯ã¡ãã£ã¨ããè¦çã§ãããããã©ã«ãã®ãã¼ãã¤ã³ãã ã¨ãemacsãã¤ã³ãã£ã³ã°ã§ããã°alt + bã¨ãalt + nã§åèªåä½ã§ç§»åã§ããã®ã ããããã¯çæã§æã¤ã¨è¦ªæã«ç¡çãããããã¼ãã¤ã³ãã§ãããããã§ãemacsã¨åãããã«ãctrl + ââ ã§åèªåä½ã®ç§»åãå¯è½ã«ãã¦ãããã¤ãã§ã«ã/ã¯åèªã®ä¸é¨ã¨è¦åããªãæ§ã«è¨å®ãã¦ããããã®è¨å®ã«ãããé·ããã¹åã®ä¸ç¨ã«ééãããã£ãå ´åã«ä¿®æ£ããã®ã楽ã«ãªãã bindkey ";5C" forward-word bindkey ";5D" backward-wor
A zsh prompt for Mercurial users Nov 16, 2009 My friend Sebastian Celis recently posted on his blog about a zsh prompt for Git users. Basically, it's a set of scripts for ZSH that allow it to display the current status of the Git repo you're currently in. Very cool stuff, but unfortunately I don't use Git (very often), and instead use Mercurial for most of my projects. So I decided to modify it to
After starting to use Git a few months ago, I thought it would be useful to show the branch of the current repository in my zsh prompt. I did some searching online, but I could not find an appealing solution. Everything I found was either too slow or just didn't show the correct information. So I figured I might as well just throw one together myself. First and foremost, my prompt needed to be fas
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}