-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
44 lines (35 loc) · 1.02 KB
/
.bashrc
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
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# enable vi mode
set -o vi
# clear screen
bind -x '"\C-l": clear;'
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
. $HOME/.nix-profile/etc/profile.d/nix.sh;
fi
LINUX_HOMEBREW=/home/linuxbrew/.linuxbrew/bin
MACOS_HOMEBREW=/opt/homebrew/bin
NIX_PROFILE_BIN=$HOME/.nix-profile/bin
SHELL_NAME=fish
# SHELL_NAME=nu
if [ -f $NIX_PROFILE_BIN/$SHELL_NAME ]; then
export SHELL=$NIX_PROFILE_BIN/$SHELL_NAME
elif [ -f $LINUX_HOMEBREW/$SHELL_NAME ]; then
export SHELL=$LINUX_HOMEBREW/$SHELL_NAME
elif [ -f $MACOS_HOMEBREW/$SHELL_NAME ]; then
export SHELL=$MACOS_HOMEBREW/$SHELL_NAME
fi
if [ ! "$SHELL" = "/bin/bash" ]; then
exec $SHELL
fi