diff options
-rw-r--r-- | .bash_profile | 10 | ||||
-rw-r--r-- | .bashrc | 14 | ||||
-rw-r--r-- | .config/readline/inputrc | 7 |
3 files changed, 31 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..7bb0c07 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,10 @@ +# bash profile + +PATH=$PATH:~/.local/bin + +export HISTFILE=~/.local/share/bash/history +export LESSHISTFILE=- +export EDITOR=nvim +export VISUAL=$EDITOR + +[[ -f ~/.bashrc ]] && . ~/.bashrc @@ -0,0 +1,14 @@ +# bash initialisation file for interactive shells + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +PS1='\[\e[34m\]\u@\h \W$(__git_ps1 " (%s)") >\[\e[39;49m\] ' +PS2='\[\e[34m\]>\[\e[39;49m\] ' + +source /usr/share/git/completion/git-prompt.sh + +export INPUTRC=~/.config/readline/inputrc + +alias v=nvim +alias f=vifm diff --git a/.config/readline/inputrc b/.config/readline/inputrc new file mode 100644 index 0000000..037db82 --- /dev/null +++ b/.config/readline/inputrc @@ -0,0 +1,7 @@ +Control-p: history-search-backward +Control-n: history-search-forward +TAB: menu-complete +set show-all-if-ambiguous on +set colored-completion-prefix on +set menu-complete-display-prefix on +set completion-display-width 120 |