Nikolay Blokhin Facebook Nikolay Blokhin Instagram Nikolay Blokhin Linkedin Nikolay Blokhin Twitter

Hi, I'm Nikolay Blokhin I build the cool things with Python and Swift

Useful improvement in the console

Add to your .inputrc this:

"\e[A": history-search-backward
"\e[B": history-search-forward

Now we can move through the command history with the aid of the arrows, after typing beginning of a command.

Amd add to your bash config:

PROMPT_COMMAND='history -a;history -n'
export HISTCONTROL=ignoredups

First - command recorded in 'history' after enter. Second - ignore duplicate commands.

Some aliases:

alias ..='cd ..'
alias c='clear'
alias p='python'