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
ZSHã«ã¯global aliasã¨ããæ©è½ãããã¾ãã ããã¯ãè¡é 以å¤ã«å ¥åãããå ´åã«ãå±éãããaliasã§ãã $ alias -g B='"$(git symbolic-ref --short HEAD)"' $ git push -u origin B # â git push -u origin [ç¾å¨ã®ãã©ã³ãå] 使ãããªããã°ä¾¿å©ãããªä¸æ¹ã§ãglobal aliasã¯ã°ãã¼ãã«åå空éãæ±æãããããå°å ¥ã«ã¯æ éããè¦ãã¾ã*1 ã ã¾ããã³ãã³ããã¹ããªã¼ã«ã¯é常ã®aliasã¨åæ§ã«global aliasã®å±éåã®å ¥åãä¿åããã¾ãã ããã2ã¤ã®åé¡ç¹ã解決ãããã¨ãç®çã«ãzabrze ã¨ããZSHãã©ã°ã¤ã³ãä½æãã¾ããã github.com ããã¯ãªã« zabrze *2 㯠aliasãYAMLã§è¨è¿°ã§ããããã«ããZSHãã©ã°ã¤ã³ã§ãã 1. al
Maybe you have experienced the default Vi mode in Zsh, after turning on the default Vi mode, you gradually found that it had many problems, some features were not perfect or non-existent, and some behaviors even were different from the native Vi(Vim) mode. Although the default Vi mode was a bit embarrassing and unpleasant, you kept on using it and gradually lost your interest on it after using for
cdã®å¼æ°ãç¸å¯¾ãã¹ã®ã¾ã¾ã³ãã³ããã¹ããªã«æ®ã£ã¦ä¾¿å©ãªä¾ãæãã¤ããªãã®ã§ã絶対ãã¹ã§ã³ãã³ããã¹ããªã«æ®ãããã«ããã å ·ä½çã«ã¯ã以ä¸ã®ã·ã§ã«é¢æ°ã.bashrcã«æ¸ãã if [[ -n "$PS1" ]]; then cd() { command cd "$@" local s=$? if [[ ($s -eq 0) && (${#FUNCNAME[*]} -eq 1) ]]; then history -s cd $(printf "%q" "$PWD") fi return $s } fi ããã¤ãã®éè¦ãªãã¤ã³ãã以ä¸ã«è¨ãã cdã®å®ç¾©ãä¸æ¸ããã¦ãããããã®ãããªå ´åä¸ã§æ®éã«cdãå¼ã¶ã¨å帰ãã¦ãã¾ãããcommandçµã¿è¾¼ã¿ã³ãã³ãã使ãã "$@"ã®ä»£ããã«"$1"ã使ããã¨ã¯ã§ããªããcdãå¼æ°ãªãã§å¼ãã ã¨ããã¼ã ãã£ã¬ã¯ããªã«ç§»åããªããªã£ã¦ãã¾ãã cdã®
Advent Calendarã£ã¦25æ¥ç®ãããã ã£ãï¼ ã£ã¦ãã¨ã§ãã¨ã¯ã¹ãã©çãªä½ç½®ã¥ãã§ã²ã¨ã¤â¦â¦ã ã¨ããã®ãã¢ã¿ã¯ã·ãã·ã§ã«ã¹ã¯ãªããééã§ã¯ãããã®ã®ãzshã¯ãã®Advent Calendarè¦ã¦ã¯ããã¾ãã¦ãæè¿zshã®æ¬ãè²·ã£ã¦èªã¿ã ãããã¼ãã¼ã§ãããã¾ãã update 2013/12/25 19:45 é ããã³ã¡ã³ãã§ç®æ¨éæã§ãã¾ãããæè¬ï¼ããã¦ãããzshããã¯ãæå¼·ã ã£ãâ¦â¦ æ¬æ¥ã®ãã¼ããflock(2)ã¿ãããªããã¯ãããããã ã·ã§ã«ã¹ã¯ãªããã®ãã¡ã³ã¨ãã¦æ®å¿µãªã®ã¯ãflock(2)ã®ãããªãã¡ã¤ã«ããã¯ã³ãã³ããç¡ããã¨ã誰ã«ãéªéãããã«ãã¡ã¤ã«ãèªã¿æ¸ãããããã¨ã¨ããå¤éèµ·åãé²æ¢ããããã¨ã¨ãããããã¾ãããããããOSã«ãã£ã¦ã¯ããã£ã½ãã®ã¯ç¢ºãã«ããã¾ããLinuxã«ã¯flock(1)ã³ãã³ãããã£ã¦å®éã«å é¨ã§flock(2)ã使ã£ã¦
## Source promptway.zsh # zstyle ã«ããè¨å®åã«èªã¿è¾¼ãã㨠source path/to/promptway/promptway.zsh zstyle ':prompt:dir' formats "%B%a%b" zstyle ':prompt:dir:symlink' formats "%B%F{cyan}%a@%f%b" zstyle ':prompt:way' formats "%a" zstyle ':prompt:backward' enable t zstyle ':prompt:backward:dir' formats "%U%a%u" zstyle ':prompt:backward:dir:symlink' formats "%U%F{cyan}%a@%f%u" zstyle ':prompt:backward:way' formats
ãã®è¨äºã¯ zsh advent calendar 2012ã® 19æ¥ç®ã®è¨äºã§ãã zaw-cdrã¨ã¯ zshã® 4.3.15ã«å°å ¥ããã cdrã¨ããæè¿ãããã£ã¬ã¯ããªã«ç§»åãã ã³ãã³ãã® zawã¤ã³ã¿ãã§ã¼ã¹ã§ããããã§æè¿ãããã£ã¬ã¯ããªã«è¶ 絶楽㫠移åãããã¨ãã§ãã¾ããç§ã¯ãããå°å ¥ãã¦ãpushdã¨ã autopushdã®é¡ã å©ç¨ããã®ãããã¾ããã人ã«ããããã¨æãã¾ããããã£ã¬ã¯ããªç§»åã® å¤ãã¯éå»ã«ç§»åããå ´æã¸ã®ç§»åã«ãªãã¨æãã®ã§ãå¤ãã®äººã«ã¨ã£ã¦ å½¹ç«ã¤ã®ã§ã¯ãªããã¨æãã¾ãã 使ãã®ã«ã¯ããããæ £ããå¿ è¦ã§ãããæ®æ®µãã helm(anything), unite(Vimã¯ä½¿ããªãã®ã§è©³ããããããªãã§ããããã¶ãä¼¼ã¦ããã¨æãã¾ã)ã 使ã£ã¦ãã人ã§ããã°é£ãªãå°å ¥ãããã¨ãã§ããã¨æãã¾ãã ã¡ãªãã ç®çã®ãã®çµãè¾¼ã¿ãç°¡å ãã£ã¬ã¯ããªãã¹ã®éä¸
This is for anything regarding the command line, in any operating system. All questions (including dumb ones), tips, and links to interesting programs/console applications you've found or made yourself are welcome. Linux / BSD / OSX / Windows CLI and TUI apps or questions or comments, we're happy to take them all! I've always hated adding an alias and then having to manually source it in every ope
zsh-users/antigen å人çã«ã¯.zshrcã§ç´°ããè¨å®ãã¦ããã®ã§ãå©ç¨ãããã¨ã®ãªãoh-my-zshã§ããã oh-my-zshãå©ç¨ãã¦ãã人ãã¿ãã¨ãªããªã便å©ããã§ãç¹ã«pluginsã éçºãæ´»çºã§ã種é¡ãè±å¯ã§ä¾¿å©ãªæãã oh-my-zshãå©ç¨ãã¦ããªãã¦ãantigenãå©ç¨ãã㨠oh-my-zshã®themeãpluginãå©ç¨ã§ããã®ã§å°å ¥ãã¦ã¿ãã antigenã¯vimãã©ã°ã¤ã³ããã¼ã¸ã£ã¼ã®Vundleã® å½±é¿ãåãã¦ããã®ã§ãVundle使ãã®ç§ã«ã¯è¨å®æ¹æ³ãä¼¼ã¦ãã¦å°å ¥ãããããã£ãã antigenã®å°å ¥ git cloneã§æã£ã¦ããã ãã
hoge[tab]ã§ãµãã³ãã³ããè£å®ããã ãµãã³ãã³ãã®å¾ã¯ãã¡ã¤ã«ããã£ã¬ã¯ããªãè£å®ãããããã«ã ãµãã³ãã³ãã¨ãã¡ã¤ã«åãè£å®ãã ä¸è¨ã.zshrcã«è¨è¼ãã¦exec $SHELL ãã£ã¦ãããã¨ã¯ compdefã§_hogecmdã¨ããè£å®ç¨functionãå®ç¾©ããhogeã³ãã³ããå®è¡ããã¨ãã«å¼ã³åºãããããã«ã functionå ã®cmdsã§è£å®ããããµãã³ãã³ããåæ CURRENT == 2ã§hogeã®ãã¨ã«è£å®ãããã®ã¯ãµãã³ãã³ãã ãã¨æå® _describeã§è£å®åè£ã§è¡¨ç¤ºãããã¨ãã«subcommandã¨ããã°ã«ã¼ãã«ãªãããã«ãã¦ãã ãµãã³ãã³ãã®ãã¨ã¯_filesã§ãã¡ã¤ã«ã¨ãã£ã¬ã¯ããªãè£å®ãããããã« åèã«ãªããµã¤ã zshã®è£å®é¢æ°ã®æ¸ãæ¹ãã¾ã¨ã¾ã£ã¦ããã¨ãããã»ã¨ãã©ç¡ãã®ã§ä¸è¨ãé常åèã«ãªãã¾ãã zshè£å®é¢æ°ãèªä½ããã¨ä¾¿å© -
ç´ æ©ãvãé£æããã¨ãã«ãæå¾ã«å®è¡ããviã³ãã³ãããã®å¼æ°ã¨å ±ã«èµ·åãããæ¹æ³ bindkey -s "vv" "!vi\n" ç´ æ©ã:qã¨å ¥åããç¬éã«å³ç«¯æ«ãçµäºãããæ¹æ³ bindkey -s ':q' "^A^Kexit\n" ç´ æ©ãps auxw | grepãè¶ ãã£ãããå ¥åããæ¹æ³ bindkey -s P 'ps auxw' bindkey -s G '| grep ' ã¨ããç¶æ ã§ã³ã³ã½ã¼ã«ã§ PG ã¨å ¥åãã
ã¡ãã£ã¨ãã¤è¤éãªãã¨ããã£ã¦ãã£ã¦ããã®ã§ãããæ£ç´ã¾ã èªåã§ä½ã£ã¦ããã¤ã¡ã¼ã¸ãã¤ãã¦ãã¾ããã å éã¨æ¸éï¼ã¤ã¼ã¸ã³ã°ã¿ã¤ã ã©ã¤ã³ããã«ã®ãã¬ã¼ã æ°ãã§ã¦ãã¨ãã®ä¸ã®ã¹ã©ã¤ãã¼ã§ã¯ã¼ã¯ã¨ãªã¢ã®å¹ ãæä½ã§ããã°ã©ãã¨ãã£ã¿ã¼ã¨ããã®ãåå¨ãããå¤ã°ã©ãã¨é度ã°ã©ããã°ã©ããç·¨éããã¨ãã«è§¦ãã®ã¯ãã³ãã«ã ãã¤ã¼ã¸ã³ã°ã®é度ãæ©ãã¦ã³ããè¦ããæã¯ã¢ã¼ã·ã§ã³ãã©ã¼ãããã(13:40)ã¢ã¼ã·ã§ã³ãã©ã¼ã¯è²ã ãã¾ããã¦ãã¾ãã®ã§æå¾ã«ã¤ããã»ãããããå¦çãéãããæåã®ã»ãã§ã¤ããã¨ãã¬ãã¥ã¼ã®ã¨ãã«ããã©ãã¨ããããï¼ãã ãã¬ãã¥ã¼ã®ã¨ãã ããªãã«ããã¨ããã§ããï¼
joelthelion/autojump - GitHub zshè£å®é¢æ°ã®æ¸ãæ¹ããããã調ã¹ã¦ããããautojump-zshã¨ããããã±ã¼ã¸ãçºè¦ã æ°ã«ãªã£ã¦ä½¿ã£ã¦ã¿ãããã¡ããã¡ã便å©ã§ãä¹ ã ã«æåããã®ã§ç´¹ä»ã autojumpã¯cdã³ãã³ãã®æ¡å¼µçãªã³ãã³ãã§ã移åãããã£ã¬ã¯ããªãè¨é²ãã ãã£ã¬ã¯ããªéãè¡ã£ããæ¥ããããã¨ãã«çµ¶å¤§ãªå¹æãçºæ®ãã¾ãã å ¬å¼wikiã«æ¸ãã¦ãããã ã³ãã³ãã©ã¤ã³ä½æ¥ã®10ã20%ã¯cdã³ãã³ãã®ããããã£ã¬ã¯ããªç§»åã®åä½ã æ¹åããã¨å¿ ç¶çã«ä½æ¥å¹çãåä¸ããã¨ãããã¨ã§ãã å®éç§ãautojumpã使ãåºãã¦ãããä½æ¥å¹çãä¸ããã¾ããã ããã§ã¯æ©éautojumpã®èª¬æããåä½æ¤è¨¼ç°å¢ã¯ä¸è¨ã§ãã Mac OSX 10.7.3 Fedora 16 Scientifix Linux 6.1 å°å ¥æ¹æ³ autojumpãå©ç¨ããã«
ä¼ç¤¾ã§ã³ã¼ããæ¸ãã¦ããã¨ãããããªããã¸ã§ã¯ãã®ãã£ã¬ã¯ããªéãé »ç¹ã«ç§»åãã¾ããæ¯åcdããã®ã¯ã ããã®ã§ãããã解æ¶ãã便å©ãªzshç¨ã®é¢æ°ã¨è£å®é¢æ°ãæ¸ããã®ã§ç´¹ä»ãã¾ããã¯ã¦ãªã®ã¨ã³ã¸ãã¢ã®ã²ã¨ã¨ãzshè£å®é¢æ°ãæ¸ãã¦ã¿ãã人ã«ã¯ããããå½¹ç«ã¤ã¨ãã£ã趣ã®ã¨ã³ããªã§ãã ä¼ç¤¾ã®ããã¸ã§ã¯ãã®ãªãã¸ããªã¯ã~/work/hatena ã¨ããã¨ããã«å ¨é¨ã¾ã¨ãã¦ãã¾ããã ããã以ä¸ã®ãããªæãã§ãã > ls ~/work/hatena Hatena-Antenna/ Hatena-Diary/ Hatena-Ugomemo/ git-hooks/ Hatena-Bookmark/ Hatena-Group/ Ridge/ iphone/ Hatena-Coco/ Hatena-Star/ android/ sketch/ åããã¸ã§ã¯ãã®ãªãã¸ããªã«ã¯é »ç¹ã«ç§»åããã®ã§ãç°¡åãªz
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
æ¥å¹´ãä½ãããï¼ãµãã®ã¨ãæçãæºå«ããã2024å¹´æ¥ã®è¨é² æ¥ã¯èªçã楽ããå£ç¯ 1å¹´ã®ä¸ã§æãèªçã楽ããå£ç¯ã¯æ¥ã ã¨æããã¹ã¼ãã¼ã®æ£ã«ãããããªè²åãã®éèã並ã¶ã¨èªç¶ã¨ããããå¼¾ãã ä¸ã§ãã¨ãããã®ã¯å±±èã ãæ©ãã¨2æä¸æ¬ãããã並ã³å§ããããã¯ãã¿ã©ã®è½ããµãã®ã¨ãã¨ç¶ããæ¡ã®é ã«ã¯ããããã¦ãããâ¦
GNU screenã使ã£ã¦ããã°, ä½æ¥ã®éä¸ã§ãã°ã¢ã¦ãããã¨ãã«detachãã¦ããã¦, ä½æ¥ãåéããã¨ãã«attachããã°, ä½æ¥éä¸ã®ç«¯æ«ã®ç¶æ ããã®ã¾ã¾ç¶æãããã®ã§ã¨ã¦ãã¹ãã. ãã¨ãã°, æåä½æ¥ãã¦ããã®ã¨ã¯å¥ã®ãã¹ãããsshã§ãã°ã¤ã³ãã¦attachãªãã¦ãã¨ãã§ãã. ãã ã, æåã«screenãç«ã¡ä¸ããã®ã¨ã¯å¥ã®ç«¯æ«ã§attachããã¨, screenã¯æåã«ç«ã¡ä¸ãã端æ«ã®ç°å¢å¤æ°ã®ã¾ã¾ã«ãªã£ã¦ãã¦, å¥ã®ãã¹ãããæ¥ç¶ãã¦ãããã¨ãèªèã§ããé¢åãªæãããããã¨ããã. ä»åã¯ããããªãã¨ãããã¨ãã話. åé¡ã®è©³ç´° 話ãç°¡åã«ããããã«, DISPLAYç°å¢å¤æ°ãä¾ã«ã¨ã£ã¦èª¬æããã. DISPLAYç°å¢å¤æ°ã¯, åºæ¬çã«ã¯ç¾å¨ãã°ã¤ã³ä¸ã®ç°å¢ã§ä½¿ãã¹ãXãµã¼ããæã示ãã¦ãã*1. æåã¯ãã¹ãAã«ç´æ¥ãã°ã¤ã³ãã¦ããã¨ãã. DISPLAYç°å¢
åé¢æ±ã®ãããããªã¨ããããå¯å£«å±±ãè¦ãããç¶æ³ã«é©ãã¤ã¥ãã¦ãã 大éªããæ±äº¬ã«å¼ã£è¶ãã¦ï¼ï¼å¹´ä»¥ä¸çµã¤ããããããã¨èç©ããã¦ããé©ããã¤ãã«é¾å¤ãè¶ ããã®ã§çãå·ã£ã次第ã§ãããæ£ç¢ºã«ã¯ããã¡ã© DM250ãèµ·åãã¦menuãã¼ãæ¼ãã¦æ°è¦ä½æãé¸ãã ãã®ã ãããã¡ã©ãæã£ã¦ããªãã£ãããããã«é©ããèç©ããã¦ããªãã¨â¦
find-file Emacs ã® find-file (C-x C-f) ã¯æ¬å½ã«ä½¿ãã«ãããã®ã ã¨, 常ã æã£ã¦ãã. ä¸ã§ã, è£å®åè£ãè¤æ°ãã£ãå ´åã®æå. ãããä½ã¨ãæ°ã«ãããªã. ä¾ãã°, 以ä¸ã®ããã« C-x C-f ãå ¥åããç´å¾ã®ç¶æ ãèãã. ãã®æ TAB ãã¼ãæ¼ãã¨, ããã©ã«ãã® Emacs ã§ã¯ [Complete, but not unique] ã¨ã®è¡¨ç¤ºãåºãã ãã§, åè£ä¸è¦§ã表示ããã«ã¯ããä¸åº¦ TAB ãã¼ãæ¼ãå¿ è¦ããã. ãã®ãäºå TAB ãã¼ãæ¼ããã¨ããè¡çºãæ¯åº¦æ¯åº¦è¦æ±ããããã¨ã¨ãªã, ãã®ã¹ãã¬ã¹ãããåã¾ãããã®ããã£ã. ã¾ã, TAB ãäºåæ¼ãã¦è£å®åè£ã表示ãããå¾ã®æåã¯, 輪ãããã¦èç«ããã. ãã®æ TAB ãæ¼ãã¨ã©ããªããã¨ããã°ãè£å®åè£ãå ¨ã¦è¦ããããã«ã¹ã¯ãã¼ã«ãè¡ããããã ããªã®ã . è£å®åè£ä¸è¦§ãç»
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}