-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
75 lines (60 loc) · 1.79 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
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
70
71
72
73
74
75
TERM=xterm-256color
HISTSIZE=10000
HISTFILESIZE=10000
HISTTIMEFORMAT="%F %H:%M:%S "
# GO stuff
# Where is the go binary
export GOROOT=/usr/lib64/go/1.18
export PATH=$PATH:$GOROOT/bin
# Libraries with executables
export GOPATH=/home/jloehel/golib
export PATH=$PATH:$GOPATH/bin
# My Projects
export GOPATH=$GOPATH:/home/jloehel/Projekte/go
eval "$(pyenv init --path)"
# libpostal
export LIBPOSTAL_DATA_DIR=/usr/share/libpostal
# fzf
if type rg &> /dev/null; then
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
export FZF_DEFAULT_OPTS='-m --height 50% --border'
fi
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/jloehel/mambaforge/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/jloehel/mambaforge/etc/profile.d/conda.sh" ]; then
. "/home/jloehel/mambaforge/etc/profile.d/conda.sh"
else
export PATH="/home/jloehel/mambaforge/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# completion
[[ -f /etc/profile.d/bash_completion.sh ]] && . /etc/profile.d/bash_completion.sh
test -s ~/.alias && . ~/.alias || true
test -s ~/.functions && . ~/.functions || true
#- - - - - - - - - - - - - - - - - - -#
# prompt #
#- - - - - - - - - - - - - - - - - - -#
# git prompt
source ~/.bash-git-prompt.sh
PROMPT_COMMAND=prompt
# build prompt
prompt() {
# left prompt
PS1="\[\e[32m\]\u\[\e[m\]\[\e[36m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\]\[\e[33m\]\`parse_git_branch\`\[\e[m\] "$'\u2771 '
# right prompt
width=$(expr `tput cols` - 1)
printf "%${width}s`tput cr`" $(pwd | sed "s:^$HOME:~:")
}
vim()
{
local STTYOPTS="$(stty --save)"
stty stop '' -ixoff
command vim "$@"
stty "$STTYOPTS"
}