-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
executable file
·32 lines (26 loc) · 1 KB
/
bash_profile
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
#!/bin/bash
########################################################################
# Bash Interactive Shell Setup
########################################################################
# Import the shell agnostic environment config
source ~/.all_profile
# When running two bash windows, allow both to write to the history, not one stomping the other
shopt -s histappend
# Keep multiline commands as one command in history
shopt -s cmdhist
export PS1="\
[\[$prompt_device_color\]\h\[$prompt_reset\]][\[$prompt_direct_color\]\w\[$prompt_reset\]]\
\$( is_on_git && \
echo -n \"[\[$prompt_git_master_color\]\$(get_git_info_master)\" && \
echo -n \"\[$prompt_git_branch_color\]\$(get_git_info_branch)\" && \
echo -n \"\[$prompt_git_status_color\]\$(get_git_status)\" && \
echo -n \"\[$prompt_git_progress_color\]\$(get_git_progress)\" && \
echo -n \"\[$prompt_preposition_color\]]\")\[$prompt_reset\] $ "
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;\h: \w\a\]$PS1"
;;
*)
;;
esac
. "$HOME/.cargo/env"