You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
718 B

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