From 73864b8b4870ce2a43f7f4aaab06ef1d45435843 Mon Sep 17 00:00:00 2001 From: servostar Date: Sun, 24 Nov 2024 16:06:41 +0100 Subject: [PATCH] bash: add `bashrc` and `blerc` --- .bashrc | 17 +++++++++++++++++ .blerc | 11 +++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .bashrc create mode 100644 .blerc diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..e888166 --- /dev/null +++ b/.bashrc @@ -0,0 +1,17 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +PS1='[\u@\h \W]\$ ' + +[[ $- == *i* ]] && source "$HOME/.local/share/blesh/ble.sh" --rcfile "$HOME/.blerc" + +# Set up fzf key bindings and fuzzy completion +eval "$(fzf --bash)" + +[[ ! ${BLE_VERSION-} ]] || ble-attach diff --git a/.blerc b/.blerc new file mode 100644 index 0000000..d9ee140 --- /dev/null +++ b/.blerc @@ -0,0 +1,11 @@ + +# set pager to use +bleopt pager=bat + +# editor to use +bleopt editor=nvim + +# The face used to show the suggested strings by auto completion. +# Make it more sublte than the default. +ble-face auto_complete='bg=default,fg=gray' +