diff --git a/bashrc.txt b/bashrc.txt index f1f213fe..c90affdf 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -5,13 +5,11 @@ # history -c && history -w && hash -r # create custom env variables: -export cproj="/home/brian/Documents/Code/forks/" +export cproj="/home/brian/Documents/Code/source_code_to_study/sandbox/msh" # custom BROWSER env for ddgr: export BROWSER=links export TUIR_BROWSER=librewolf -export EDITOR=nvim -# enable vi keybindings in terminal and terminal applications -set -o vi +export EDITOR=nvim # enable vi keybindings in terminal and terminal applications set -o vi # but keep ctrl l as the clear screen command bind -m vi-command 'Control-l: clear-screen' bind -m vi-insert 'Control-l: clear-screen' @@ -182,7 +180,7 @@ export GREP_COLORS='ms=01;34' [ -f ~/.fzf.bash ] && source ~/.fzf.bash # icons-in-terminal -source ~/.local/share/icons-in-terminal/icons_bash.sh +# source ~/.local/share/icons-in-terminal/icons_bash.sh # BEGIN_KITTY_SHELL_INTEGRATION if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi @@ -191,3 +189,6 @@ if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integr alias home="xclear && cd /home/brian && clear && history -c && hash -r" source ~/.aliases source /home/brian/.bash_completions/typer.sh +# Use bash-completion, if available +[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ + source /usr/share/bash-completion/bash_completion diff --git a/inputrc.txt b/inputrc.txt index 58d7b82e..a30d0ff8 100644 --- a/inputrc.txt +++ b/inputrc.txt @@ -1 +1,9 @@ set enable-keypad on + +# Prettify +set colored-stats on +set colored-completion-prefix on + +# Completion settings +set show-all-if-ambiguous on +set completion-ignore-case on diff --git a/updates.txt b/updates.txt index 82be6ed4..1d8e04e8 100644 --- a/updates.txt +++ b/updates.txt @@ -14,12 +14,12 @@ add notation about using pick to parse through output, and pipe that using xargs example: ls | pick | xargs bat # will give you a choice of the files from ls, pick displays a menu to "pick" the file, which then is parsed to xargs bat (invokes bat on choice from ls | pick) -install archwiki-docs +Install bash-completion -doas pacman -S archwiki-docs +doas pacman -S bash-completion -pull scripts and copy sxhkd/sxhkdrc to configs +copy bashrc.txt and inputrc.txt to home directory -cd scripts && git pull && cp ~/Documents/notes/sxhkd/sxhkdrc ~/.config/sxhkd/ +cp bashrc.txt ~/.bashrc && cp inputrc.txt ~/.inputrc -And restart bspwm (super+shift+esc) and then invoke dmwiki using super+w +This will now allow completion in bash using the tab button (a bit faster than zsh since zsh-autocompletion tries to predict what you type) diff --git a/zshrc.txt b/zshrc.txt index 2b69bdb5..06a41e44 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -4,7 +4,7 @@ # # create custom env variables: # -export cproj="/home/brian/Documents/Code/forks/" +export cproj="/home/brian/Documents/Code/source_code_to_study/sandbox/msh" # custom BROWSER env for ddgr: export BROWSER=links export TUIR_BROWSER=librewolf