.profile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # ~/.profile: executed by the command interpreter for login shells.
  2. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
  3. # exists.
  4. # see /usr/share/doc/bash/examples/startup-files for examples.
  5. # the files are located in the bash-doc package.
  6. # the default umask is set in /etc/profile; for setting the umask
  7. # for ssh logins, install and configure the libpam-umask package.
  8. #umask 022
  9. # if running bash
  10. if [ -n "$BASH_VERSION" ]; then
  11. # include .bashrc if it exists
  12. if [ -f "$HOME/.bashrc" ]; then
  13. . "$HOME/.bashrc"
  14. fi
  15. fi
  16. if [ -d "$HOME/.pyenv/bin" ]; then
  17. PATH="${PATH:+"$PATH:"}$HOME/.pyenv/bin"
  18. eval "$(pyenv init -)"
  19. eval "$(pyenv virtualenv-init -)"
  20. fi
  21. pathappend() {
  22. for ARG in "$@"
  23. do
  24. if [ -d "$ARG" ] && [[ ":$PATH:" != *":$ARG:"* ]]; then
  25. PATH="${PATH:+"$PATH:"}$ARG"
  26. fi
  27. done
  28. }
  29. pathappend "$HOME/bin"
  30. pathappend "$HOME/.local/bin"
  31. pathappend "$HOME/.cargo/bin"
  32. pathappend "$HOME/.poetry/bin"
  33. pathappend "/usr/lib/go-1.12/bin"
  34. pathappend "/usr/local/go/bin"
  35. pathappend "/usr/sbin"
  36. # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src/"