bash: add `bashrc` and `blerc`

This commit is contained in:
Sven Vogel 2024-11-24 16:06:41 +01:00
parent 7cdce4160c
commit 73864b8b48
2 changed files with 28 additions and 0 deletions

17
.bashrc Normal file
View File

@ -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

11
.blerc Normal file
View File

@ -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'