2022-02-03
This commit is contained in:
parent
f86b8496ec
commit
db393215ce
55 changed files with 1907 additions and 0 deletions
31
home/dot-local/share/bash/shopt.sh
Normal file
31
home/dot-local/share/bash/shopt.sh
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# -*- mode: bash -*-
|
||||
|
||||
# update window size after every command
|
||||
shopt -s checkwinsize
|
||||
|
||||
# prepend cd to directory names automatically
|
||||
shopt -s autocd
|
||||
|
||||
shopt -s dirspell
|
||||
shopt -s cdspell
|
||||
|
||||
# READLINE
|
||||
|
||||
# perform file completion in a case
|
||||
# insensitive fashion
|
||||
bind "set completion-ignore-case on"
|
||||
# treat hyphens and underscores as equivalent
|
||||
bind "set completion-map-case on"
|
||||
# display matches for ambiguous patterns
|
||||
# at first tab press
|
||||
bind "set show-all-if-ambiguous on"
|
||||
# immediately add a trailing slash when
|
||||
# autocompleting symlinks to directories
|
||||
bind "set mark-symlinked-directories on"
|
||||
|
||||
# vi mode configurations
|
||||
bind "set vi-ins-mode-string \1\e[6 q\2\1ins\2"
|
||||
bind "set vi-cmd-mode-string \1\e[2 q\2\1cmd\2"
|
||||
bind "set show-mode-in-prompt on"
|
||||
|
||||
# ➜
|
||||
Loading…
Add table
Add a link
Reference in a new issue