Skip to main content

#Shell - How to sharpen a command-line interface for better plain-text experience?

For some of us and as crazy as it may look like our productivity derives directly from the addition and subsequent customization of dot files

This week, I've stumbled upon this article of Nikita Sobolev, written with geat care on this topic with particularly detailed illustrations and precious pointers :  

Instant +100% command line productivity boost 

Here are some of the new challengers reinventing our daily plain-text experience 

ag - code searching tool similar to ack, with a focus on speed

exa - modern replacement for ls

fzf - general-purpose command-line fuzzy finder 

zsh-syntax-highlighting - Fish shell-like like syntax highlighting for Zsh

For better compatibility with tmux,

  • I've re-installed my current version of the terminal multiplexer from its 2.5 release
    I had some issue when using Pygments as replacement of cat for syntax highlighting of source files with version of tmux above 2.5). Besides tig (upgraded to its 2.2.2 release) would render incremental changes in funny ways  
  • I've updated its configuration to preserve vim-mode selection and system clipboard copy-paste

For easier use of these little gems, I've added the following aliases to my shell start-up script (read ~/.zshrc equivalent) :