# .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= # User specific aliases and functions alias l.='ls -lh --color=auto' 2>/dev/null alias l='ls -lh' alias ll='ls -lh' #set -o vi alias p='ping' alias s='sudo' #golang stuff export GOPATH=$HOME/gopath export PATH=$GOPATH:$GOPATH/bin:$PATH export EDITOR=/usr/bin/vim [ -f ~/.fzf.bash ] && source ~/.fzf.bash #vi readline set -o vi #ctrl-x, ctrl-e to launch $EDITOR (vim) bind -m vi-insert '"\C-x\C-e": edit-and-execute-command' #fix clear screen in vi mode bind -m vi-insert "\C-l":clear-screen