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
ã¾ã, ä»ã®ã·ã§ã«ãã使ãã®äººã«ã¯ããããªãã. 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ãã¦ããã°, ./
ããã«ã¡ããåµåè ãã¨ããããã§ãã家買ãã¾ããã ãã¦ãæè¿ãããªã¾ã¨ãã話é¡ã«ãªãã¾ãããèªåãã³ã¡ã³ããã¾ãããããããæ å ±éã«ãªã£ã¦ã¾ãã ããç¥ããªãããã°ã©ãã£ã¦æãã¦ããªã£ã¦æãæ±ç¨çãªãã¼ã« #JavaScript #PHP #Ruby #Python #HTML - Qiita ãã¾ã¨ããããç¥ããªãããã°ã©ãã£ã¦æãã¦ããªã£ã¦æãæ±ç¨çãªãã¼ã« 100è¶ #PHP #JavaScript #Python #Ruby #HTML - Qiita ã§ãèªåã®ã³ã¡ã³ãã«ãæ¸ããã®ã ãã©ãåºæ¬çã«ä»äºã¯ã¿ã¼ããã«ã§sshæ¥ç¶ãã¦ãVimã§ã³ã¼ãæ¸ãã¦ãã®ã§ããã®è¾ºã®ç°å¢æ§ç¯ã«ã¤ãã¦ã¾ã¨ãã¦ã¿ããæè¿Terminal.appããiTerm2ã«ç§»è¡ãã¦ãscreenããtmuxã«ä¹ãæããã®ã§ããã®è¾ºãå«ãã¦å°å ¥æ¹æ³ãæ¸ãã¦ããã æå ã®ç«¯æ«ã¯MBPã§OSX Lionã ãã©ãã»ã¼å
Webteko(ã¦ã§ããã³)ã£ã¦ããåå¼·ä¼ã«åå ãã¦ãzshã«ã¤ãã¦çºè¡¨ãã(åç¥ãã¼ã¸)ãçºè¡¨è³æã¯åã®ã¨ã³ããªã«æ¸ãããããã§zshã®è¨å®ãã¡ã¤ã«ãç´¹ä»ããã®ã§ãããã«ãå¼µã£ã¦ãããåèã«ãã¦ãã ãã¡ã¤ã«ã¯ãåºæ¬ç·¨ããå¿ç¨ç·¨ãã®2ã¤ã«åããã¦ãã¾ãã zsh è¨å®ãã¡ã¤ã« : åºæ¬ç·¨ # å¼·åãªè£å®æ©è½ãæå¹ã«ãã autoload -U compinit compinit # cd ãããèªåçã«pushdãã setopt auto_pushd # éè¤ãããã£ã¬ã¯ããªã追å ããªã setopt pushd_ignore_dups # ã°ãã¼ãã«ã¨ã¤ãªã¢ã¹ alias -g L='| less' alias -g G='| grep' alias -g H='| head' alias -g T='| tail' # ãã¼ãã¤ã³ãã®é¸æ bindkey -e # emacs風 #
以ä¸ãå®å ¨ãªãããã¯ã¼ã¯ã§ã®ã話ããããããã¤ã³ã¿ã¼ãããã«ã¤ãªãã£ãä¸çã¨ãã§ã¯ãããªãã§ãã ããã zfs send/recv ZFS ã«ã¯ zfs send/recv ã¨ããä»çµã¿ããã£ã¦ããã¡ã¤ã«ã·ã¹ãã ãæ¨æºåºåã«åãåºãã¦ããããæ¨æºå ¥åããåãåãããåºæ¥ã¾ããã¨ãããããããã¯ã¼ã¯çµç±ã§ä»ã®ãã·ã³ã«éãè¾¼ãã§ããã¯ã¢ãããåããã¨ãããã¨ãã§ããããã§ãã ããã§æ°ã«ãªãã®ãããããã¯ã¼ã¯ã§ã®éä¿¡æ段ãããããã®ã¯ ssh ã§ãSolaris ã®ããã¥ã¢ã«ã«ã % pfexec zfs send -v tank/hoge@snapshot | ssh remote_host pfexec zfs recv tank/hoge@snapshotã¿ããããã¾ããããã¨æ¸ãã¦ããã¾ãã ããã©ãå®éã«ãã£ã¦ã¿ãã¨ãããã¯ã¼ã¯ã®wire speedã«ããã¹ã¦ããªãé ããremote
è¨å®ãã¡ã¤ã«ã®æ´ç - zsh ç·¨ 以åãããããã¨æã£ã¦æ°ã«ãªã£ã¦ãããUnixç°å¢ã®è¨å®ãã¡ã¤ã«ã®æ´çãè¡ãã¾ãããã¾ã㯠zsh ããã§ãã zshã使ãå§ããã®ã¯2000å¹´é ãªã®ã§ãã»ã¼10年使ã£ã¦ãããã¨ã«ãªãã¾ããæåã®ãã¡ã¯ããè¨å®ãããã£ã¦ãã¾ããããããæ°å¹´ã¯ã»ã¼æ¾ç½®ã®ç¶æ ãç¶ãã¦ãã¾ãããã²ãã³ãã« ~/.zshrc ãè¦ãã¨ãã ãã¶å¢ããã¾ã£ã¦ãã¾ããã export LV='-Ou8' export PAGER='lv' 以å㯠Shift_JIS, EUC-JP, UTF-8 ãªã©ããããããªã¨ã³ã³ã¼ãã£ã³ã°ã®ãã¡ã¤ã«ãæ··å¨ãã¦ããã®ã§ãlv ãæç¨ãã¦ãã¾ãããããæè¿ã®ãã¡ã¤ã«ã¯ UTF-8 ã ãã«ãªã£ãã®ã§ less ã§ãããªãã¾ããã LANG=ja_JP.UTF-8 ã®ããã«è¨å®ãã¦ããã°ã less 㧠UTF-8 ã®ãã¡ã¤ã«ã表示ã§ãã¾ããã¨ãããã
zshã§cd -[TAB]ã¨ããã¨ãsetopt auto_pushdãã¦ããå ´åã¯éå»ã«ãããã£ã¬ã¯ããªã ~% cd - 0 -- /home/**/work/dotfiles/.vim (ä¸çªæ) 1 -- /home/**/work/dotfiles 2 -- /home/**/work (ç´è¿) ã®ããã«è¡¨ç¤ºããã¾ãããããããã®ã¾ã¾ã¿ããæ¼ãç¶ãã¦ããã¨ãæãæã«ãããã£ã¬ã¯ããªããé 次é¸æãã¦ããã®ã¯ããç´æçã§ã¯ããã¾ãããã§ããã°ç´è¿ã«ãããã£ã¬ã¯ããªãåªå ãã¦ãªã¹ãã¢ãããã¦ã»ããã zstyleã®ãã«ããè¦ã¦ã'completion:complete:cd:*'ã§ãªã¹ããéé ã«ããæ¹æ³ãåããããéæ¹ã«æ®ãã¦ããã¨ãã⦠Zsh Workshop: The Directory Stack [1]ãè¦ã¦ã㦠cd +[TAB] ãç®çã®åä½ã ã£ãã¨éãã¾ããã ~%
é§ä½¿ãã¦ãã人ã¯å¤ããªãã ãããã©ã大æ¦ã®ã·ã§ã«ã«ã¯ pushd 㨠popd ãããã pushd ã§ãã£ã¬ã¯ããªã¹ã¿ãã¯ã«ã«ã¬ã³ããã£ã¬ã¯ããªãå ¥ãã¦ç§»åã popd ã§ãã£ã¬ã¯ããªã¹ã¿ãã¯ã®æä¸ä½ã®ãã£ã¬ã¯ããªã pop ãã¦ãã®ãã£ã¬ã¯ããªã«ç§»åãã¦ãããã ãããã pushd ãªãã¦ã³ãã³ãè¦ãã«ããããæã¡ã«ããããã¡ããã¨ã¤ãªã¢ã¹ããã¦ããããããã¡ãã¡ãã£ã¬ã¯ããªã¹ã¿ãã¯ã表示ãã¦ããã¡ããã®ãããã£ããããã㧠zsh ã®å ´åã setopt AUTO_PUSHD ã¨ãªãã·ã§ã³ãè¨å®ãã¦ããã°ãæ®éã«cdããã¨ãã«ããã£ã¬ã¯ããªã¹ã¿ãã¯ã«ãã®ãã£ã¬ã¯ããªãå ¥ãããã¨ãã§ããããã¨popdãæã¡ã«ããã®ã§ãpdã¨ãã¨ã¤ãªã¢ã¹ããã¦ã¨ãã¨æ¥½ã«ãªãã ãã£ã¬ã¯ããªã¹ã¿ãã¯ã®æä¸ä½ã使ãã®ã便å©ã ããéä¸ã®ãæãåºããããªãã¦å ´åãããã¨æãããããªæã«ã¯æ¬¡ã®ããã«ã
cygwinã§è¿½å ã®ããã±ã¼ã¸å ¥ãããã¨ããããterminfoã¨ncurseã®ãã¼ã¸ã§ã³ããã£ã¦ãã ãããã§terminfoã®ãã£ã¬ã¯ããªæ§é ãå¤ãããzshãvimã®æåãæ²æ¨ãªæãã«ãªã£ãã zshãè£å®ã®ãã³ã«ããã³ãããå´©ãã¦ããã®ã¯ä½æ¥ããæ°åããªãã¦ããããã 解決ç ~/.terminfoã«å¿ è¦ãªãã¡ã¤ã«ãé ç½®ãã ã¾ã使ãããç¥ããªãã®ã§ä»¥ä¸ã®æãã§ã³ãã³ãç»é²ãã¨ããã make_terminfo () { for CHAR in `find /usr/share/terminfo -type f | xargs -n 1 basename | perl -le '%hash; while(<>){/^(.)/; $hash{$1}=1;} print join("\n",keys %hash)'` do mkdir -p ~/.terminfo/$CHAR find
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}