å±éã³ãã³ãã®ãªãã·ã§ã³ãªãã¦è¦ãã¦ãããªããã
ããã§ãã¼ã㯠.zshrc ã«ä»¥ä¸ã®ãããªãã¨ã追å ãã¦ããã
ã¡ãªã¿ã«å
ãã¿ã¯Archlinuxã®ãã©ã¼ã©ã ãæ¬æ¥ãªãã°ããã¸ã®ãªã³ã¯ãè²¼ãã¹ããªãã ãã©ãããæã®ãã¨ãªãã§ãã©ãããé ãã¦ãããã¯ããå¿å´ã§ãã
extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 ;; *.tar.gz) tar xvzf $1 ;; *.tar.xz) tar xvJf $1 ;; *.bz2) bunzip2 $1 ;; *.rar) unrar x $1 ;; *.gz) gunzip $1 ;; *.tar) tar xvf $1 ;; *.tbz2) tar xvjf $1 ;; *.tgz) tar xvzf $1 ;; *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.7z) 7z x $1 ;; *.lzma) lzma -dv $1 ;; *.xz) xz -dv $1 ;; *) echo "don't know how to extract '$1'..." ;; esac else echo "'$1' is not a valid file!" fi } alias ex='extract'
ã¨ã¤ãªã¢ã¹ãexã«å¼µã£ã¦ãã¾ããæ¬æ¥ãªãã°ããã¾ãæ¨å¥¨ãããªããã¨ã§ãã
exã¨ããã³ãã³ããå®ã¯åå¨ãã¦ããã
ãã®ã³ãã³ãã¯ããã¹ãç·¨éã®ããã®ã³ãã³ãã
ãã ãããç¥ããªãããè¯ã調ã¹ã¦ãããªãã®ã§ç¢ºããªãã¨ã¯è¨ãã¾ãããããã®ã³ãã³ããå¿
è¦ã«ãªããã¨ã¯ãªãã§ãããã
確ãé常ã«åå§çãªããã¹ãã¨ãã£ã¿ã ã£ãã¯ãã§ãæ®éã¯vi, nano, emacs, ã使ç¨ããã§ãããããã