-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.sh
25 lines (22 loc) · 1.15 KB
/
base.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# ******************************************************************************
# * Options *
# ******************************************************************************
# https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
shopt -u direxpand # $HOME/.config - TAB -> /home/user/.config
shopt -u progcomp # $HOME/.config - TAB -> \$HOME/.config
shopt -u autocd # DIR - ENTER -> cd -- dir/
shopt -u dotglob # * -> .*
shopt -u cdspell # autocorrects cd misspellings
shopt -s cmdhist # save multi-line commands in history as single line
shopt -s histappend # do not overwrite history
shopt -s expand_aliases # expand aliases
# autocomplete with one tab instead of two
bind "set show-all-if-ambiguous on"
# ignore upper and lowercase when TAB completion
bind "set completion-ignore-case on"
bind "set bell-style none"
# bind 'TAB:menu-complete'
# # pressing tab will automatically complete the first item
# bind '"\C-i" menu-complete'
export HISTCONTROL=ignoreboth:erasedups