arnaucube
arnaucube/configsPublic Self-hosted repository
configs/.bashrc
.bashrcRaw
 1#
 2# [...]
 3#
 4# after the default config
 5
 6# Show git branch name
 7force_color_prompt=yes
 8color_prompt=yes
 9parse_git_branch() {
10 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
11}
12if [ "$color_prompt" = yes ]; then
13 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;95m\]$(parse_git_branch)\[\033[00m\]\$ '
14else
15 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ '
16fi
17unset color_prompt force_color_prompt
18
19# nvim alias
20alias n='nvim'
21
22# go
23export PATH=$PATH:/usr/local/go/bin
24export GOPATH=$HOME/go
25export GO111MODULE=on
26
27# rust
28export PATH="$HOME/.cargo/bin:$PATH"
29
30# python
31alias python='/usr/bin/python3.6'
32alias pip='/usr/bin/pip3'