diff options
author | Justin Gassner <justin.gassner@mailbox.org> | 2022-10-09 03:43:56 +0200 |
---|---|---|
committer | Justin Gassner <justin.gassner@mailbox.org> | 2022-10-09 03:43:56 +0200 |
commit | 415b11a5a911c86bb8b0bb9e3696c093e66df06d (patch) | |
tree | 663856aebefeea025043aed786fddd305f6d8b85 | |
download | dotfiles-415b11a5a911c86bb8b0bb9e3696c093e66df06d.tar.zst |
Initial commit
-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 |