-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
executable file
·41 lines (32 loc) · 906 Bytes
/
.bashrc
File metadata and controls
executable file
·41 lines (32 loc) · 906 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# ~/.bashrc
#
shopt -s autocd cmdhist histappend hostcomplete nocaseglob
# history search like zsh
bind '"\e[A": history-search-backward'
bind '"\eOA": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\eOB": history-search-forward'
# tabcomplete like zsh
bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'
# source aliases
if [[ -f ~/.aliases ]]; then
source ~/.aliases
fi
# source profile
if [[ -f ~/.profile ]]; then
source ~/.profile
fi
if [[ -d $HOME/.local/share/bash-completion/completions ]]; then
for file in $(find "$HOME/.local/share/bash-completion/completions/" -type f,l); do
source $file
done
fi
normal="\[\e[00m\]"
dark_gray="\[\e[38;05;237m\]"
bgreen="\[\e[38;05;64m\]"
yellow="\[\e[38;05;208m\]"
export PS1="$dark_gray\h $bgreen\w $dark_gray\$(git branch --show-current 2> /dev/null) $bgreen\$$normal "
fortune
#. ~/.utf8