All Posts

Fuzzy search of shell history with ctrl+r

With fzf, you can have fuzzy search when using ctrl+r to search through shell history.

zsh: Avoid duplicate in shell history

Add the following line to your .zshrc export HISTCONTROL=ignoreboth:erasedups

Better way to search and kill process on commandline

With fzf, you can have fuzzy search on process name and kill it.

Spacemacs: Jump to matching paranthesis

Vim: Save an opened file as a root user

If you have opened a file in vim as non root user but you want to save the changes as root user. :w !sudo tee %