I want to forget about differences between my Linux machines (running bash), and my BSD machines (running tcsh), and have user-friendly cli experience. The knobs below will cause bash/readline/less to behave more like tcsh defaults.
- Searching through history with filters
echo '"\e[B": history-search-forward' >>~/.inputrc
echo '"\e[A": history-search-backward' >>~/.inputrc
- Pager re-init and thus manpages causing screen to clear on quit
echo 'export PAGER="less -X"' >>~/.bashrc
- Command competion using case-insensitive search
echo 'set colored-completion-prefix on' >>~/.inputrc
echo 'set completion-ignore-case on' >>~/.inputrc
- Make vim not do the silly visual edit mode (breaks copy/paste with mouse)
echo 'set mouse-=a' >> ~/.vimrc
-
logout and log back in for changes to take effect. You could also adjust globally via /etc/ configuration files, but that might become a POLA issue for another user on a shared machine.
-
More to come...