-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path.sushrc
More file actions
52 lines (42 loc) · 1.38 KB
/
.sushrc
File metadata and controls
52 lines (42 loc) · 1.38 KB
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
42
43
44
45
46
47
48
49
50
51
52
case $- in
*i*) ;;
*) return;;
esac
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
build_profile=$([[ "$SUSH_VERSION" == *-release ]] || echo "(${SUSH_VERSION##*-})")
if [ "$color_prompt" = yes ]; then
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\b\[\033[00m\]\[\033[01;35m\]\w\[\033[00m\]'$build_profile'🍣 '
else
PS1='\u@\h:\w'$build_profile'🍣 '
fi
case "$TERM" in
xterm*|rxvt*)
PS1="\[\033]2;\u@\h: \w\007\]$PS1"
;;
*)
;;
esac
PS2='> '
PS4='+ '
alias ll='ls -l'
alias git-writing='git add -A ; git commit -m Writing ; git push'
command_not_found_handle() { #command_not_found should be loaded before bash-completion in this stage
if [ -e /usr/lib/command-not-found ] ; then
/usr/lib/command-not-found -- "$1"
fi
}
export BASH_COMPLETION=/opt/homebrew/Cellar/bash-completion/1.3_3/etc/bash_completion
if [ "$(uname)" = "Darwin" -a -f /opt/homebrew/Cellar/bash-completion/1.3_3/etc/bash_completion ]; then
source /opt/homebrew/Cellar/bash-completion/1.3_3/etc/bash_completion
complete -d cd
elif [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
_comp_complete_load scp #for completion of rsync
# . /usr/share/bash-completion/completions/git # for git-completion on WSL
complete -d cd
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
complete -d cd
fi