updated /home/brian/Documents/Code/source_code_to_study/sandbox/msh directory and installed bash-completion

This commit is contained in:
tomit4 2022-06-04 15:55:29 -07:00
parent cfe7b00eab
commit 5098a0e28d
4 changed files with 20 additions and 11 deletions

View file

@ -5,13 +5,11 @@
# #
history -c && history -w && hash -r history -c && history -w && hash -r
# create custom env variables: # 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: # custom BROWSER env for ddgr:
export BROWSER=links export BROWSER=links
export TUIR_BROWSER=librewolf export TUIR_BROWSER=librewolf
export EDITOR=nvim export EDITOR=nvim # enable vi keybindings in terminal and terminal applications set -o vi
# 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' # 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' bind -m vi-insert 'Control-l: clear-screen'
@ -182,7 +180,7 @@ export GREP_COLORS='ms=01;34'
[ -f ~/.fzf.bash ] && source ~/.fzf.bash [ -f ~/.fzf.bash ] && source ~/.fzf.bash
# icons-in-terminal # 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 # 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 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" alias home="xclear && cd /home/brian && clear && history -c && hash -r"
source ~/.aliases source ~/.aliases
source /home/brian/.bash_completions/typer.sh 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

View file

@ -1 +1,9 @@
set enable-keypad on 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

View file

@ -14,12 +14,12 @@ add notation about using pick to parse through output, and pipe that using xargs
example: 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) 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)

View file

@ -4,7 +4,7 @@
# #
# create custom env variables: # 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: # custom BROWSER env for ddgr:
export BROWSER=links export BROWSER=links
export TUIR_BROWSER=librewolf export TUIR_BROWSER=librewolf