-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
69 lines (50 loc) · 1.46 KB
/
Copy pathbashrc
File metadata and controls
69 lines (50 loc) · 1.46 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# .bashrc
# Source global definitions
#if [ -f /etc/bashrc ]; then
# . /etc/bashrc
#fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
export EDITOR='/usr/bin/vim'
export VISUAL='/usr/bin/vim'
export GOPATH=$HOME/Go
# ----------------------------------------------------------
# Text styling
# ----------------------------------------------------------
#bold=$(tput bold)
#underline=$(tput smul)
#italic=$(tput sitm)
#info=$(tput setaf 2)
#error=$(tput setaf 160)
#warn=$(tput setaf 214)
#reset=$(tput sgr0)
# ----------------------------------------------------------
# Alias'
# ----------------------------------------------------------
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# ----------------------------------------------------------
# PATH
# ----------------------------------------------------------
export PATH=$HOME/Go/bin:$HOME/.bin:$PATH
if [ -f ~/.cargo/env ]; then
. "$HOME/.cargo/env"
fi
if [ -f ~/.config/bashrc.local ]; then
source ~/.config/bashrc.local
fi
PS1="\w $ "