ããã«ã¡ã¯ãiQeda [@iQeeeda] ã§ãã GitHub ã使ãå§ããã°ããã®é§ãåºãã¨ã³ã¸ãã¢ã«è³ªåã§ãã ãã®ãããªçµé¨ããããã¨ããã¾ãããï¼
ããã«ã¡ã¯ãiQeda [@iQeeeda] ã§ãã GitHub ã使ãå§ããã°ããã®é§ãåºãã¨ã³ã¸ãã¢ã«è³ªåã§ãã ãã®ãããªçµé¨ããããã¨ããã¾ãããï¼
Skip to the content. Bash-Oneliner I am glad that you are here! I was working on bioinformatics a few years ago and was amazed by those single-word bash commands which are much faster than my dull scripts, time saved through learning command-line shortcuts and scripting. Recent years I am working on cloud computing and I keep recording those useful commands here. Not all of them is oneliner, but i
ããã«ã¡ã¯ãhachi8833ã§ãã社å Slackã§è¦ãããmorimorihogeããã®ä»¥ä¸ã®æ¸ãè¾¼ã¿ã§ç®ããé±ãè½ã¡ã¾ããã ~/.bashrcã§ä½ããåºåãã¦ãã¾ãã¨ãrsyncãªã©ã®sshãã¤ãã§åé¡ãçãããã¨ãããããã§ãã åè: ç¥ããªãã¨rsyncã§ããããã·ã§ã«åæå - Qiita ããããã£ããã«ãã§ãããããä¸æ¬¡æ å ±ãå ã«ãªãã¹ãä¸è¬çã«ãªãããã«ã¾ã¨ãã¦ã¿ã¾ããã ã·ã§ã«ã¹ã¯ãªããï¼.bashrcã.bash_profileãªã©ãå«ãï¼ã¯ãã¾ãã«èªç±ã«æ¸ãã¦ãã¾ããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ãmacOSã«ãã£ã¦ä½æ³ãã¾ã¡ã¾ã¡ã ã£ããããã®ã§ãå¤ãã¦ã¯ãããªããã¤ã³ããã©ãããç¥ãããã£ãã®ã§ããã 対象ã¯bashã¨shï¼Bourne Shellï¼ã«éå®ãã¾ããã¾ãããã¹ã¯ãããGUIã®è¨å®ãã¡ã¤ã«ã«ã¤ãã¦ã¯æå°éã«ã¨ã©ãã¾ãã bashã®manãã¼ã¸ å è¨
{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBo
Macãã°ã¬ã¼ãã¢ãããããã¨ã«ãªã£ãã®ã§ãå¼ã£è¶ãä½æ¥ãè¦æ®ãã¦ãã®æ©ä¼ã«Macã®ããã°ã©ãã³ã°ç°å¢ãæ£å¸ããããã¨æãã¾ãã ãã®è¨äºã¯ããã®æã«å®æ½ããå 容ã®ã¡ã¢ã§ãã (å¹³æãçµããã¾ãã«ãä½æ¥ç°å¢ã®å¤§æé¤!) 諸注æ æ®æ®µãGoè¨èªã¨ Node.js ãä¸å¿ã«ä½¿ç¨ãã¦ããããããããã«é¢ä¿ãããã®ã大éã«å«ã¾ãã¦ãã¾ãã ã¾ããã·ã§ã«ã¯ fish shell ã使ç¨ãã¦ãã¾ãã 使ç¨ããªãæè¡ããã¼ã«ã®é¨åã«ã¤ãã¦ã¯åèç¨åº¦ã«ãã¦ä¸ããã ä»ã®ç°å¢ãæ£å¸ãã dotfiles .bashrc ãªã©ã $HOME ãã£ã¬ã¯ããªã«åå¨ããããã( . )ä»ããã¡ã¤ã«ãGitHubã§ç®¡çãã¦ãã¾ãã¾ãã dotfiles ãªãã¸ããªãä½æãã¾ãã (ç§ãçµæã¨ãã¦ä½æãããªãã¸ããªã¯ãã¡ã https://github.com/yoskeoka/dotfiles) dotfiles ãª
Bashã§ã¹ã¯ãªãããæ¸ãéã«ããèªåã使ã£ã¦ããå°æãé¢æ°ãªã©ã§ãã ã¾ãBashã§ã¯ä»ã®ããã°ã©ãã³ã°è¨èªä»¥ä¸ã«$ã:ãªã©ã®è¨å·ã®ä½¿ãæ¹ãç¬ç¹ã§ã°ã°ã©ããªãã£ãä½ãã®ã§ãåºæ¬ææ³ãªã©ããã¼ãã·ã¼ãã¨ãã¦ã¾ã¨ãã¦ããã¾ãã åºæ¬ææ³ å¤æ°ã¨é å å¶å¾¡æ§æ while for-in if - elif - else ifæã®one-liner æååæ¯è¼ æååãçãã (=) æååãçãããªã (!=) 空æåãæååé·ã0 (-z) 空æåã§ãªããæååé·ã0ã§ãªã (-n) æ°å¤æ¯è¼ æ°å¤ãçãã (-eq) æ°å¤ãçãããªã (-ne) æ°å¤ãããå°ãã (-lt) æ°å¤ããã大ãã (-gt) ãã¡ã¤ã«ã®å¤å® åå¨ãã (-e) ãã¡ã¤ã«ã§ãã (-f) ãã£ã¬ã¯ããªã§ãã (-d) ã·ã³ããªãã¯ãªã³ã¯ã§ãã (-L) é¢æ° 便å©ãªã¹ãããã å®è¡ã¹ã¯ãªããããããã£ã¬ã¯ããªã
ããã¾ã§ zsh + prezto ã使ã£ã¦ãã¦ãã·ã§ã«ã®èµ·åãé ãã®ãæ°ã«ãªã£ã¦ãããã¿ã¼ããã«ã§ã¦ã£ã³ãã¦éãã¦ãã2,3ç§å¾ ã¤ããããæµç³ã«é ãã ã¨ããããã§ã·ã§ã«ã®èµ·åãæ©ããããã®ã¨ãããããbashã§ååãããªããã¨æã£ã¦ããã¨ãããã¨ã§bashã®è¨å®ãæ´ãã¦ã¿ãã®ã§ã¾ã¨ãã¦ããã ããã³ãããå¤æ´ãã ã·ã³ãã«ã«ã«ã¬ã³ããã£ã¬ã¯ããªã ã表示ããããã«ãããããã³ãããé·ãã®ã¯ãã¾ã好ããããªãã .bashrc ã«ä»¥ä¸ãè¨è¿° PS1="\[\e[1;34m\]\w\[\e[m\] " \[\e[1;34m\] ã§éè²æå®ã\w ã§ã«ã¬ã³ããã£ã¬ã¯ããªã絶対ãã¹ã§è¡¨ç¤ºã\[\e[m\] ã§å ã®è²æå®ã解é¤ãæå¾ã«åè§ã¹ãã¼ã¹ã åèï¼Bashã®ããã³ããå¤æ´ - Qiita 大æåå°æåãç¡è¦ ãã£ã¬ã¯ããªããã¡ã¤ã«è£å®ã®éã«ã¹ãã¬ã¹ãæããªãããã«ã ~/.inputrc
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}