.profile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. alias ls='ls --color=auto'
  17. # Custom ls colors
  18. eval $(dircolors ~/.dircolors)
  19. pathappend() {
  20. for ARG in "$@"
  21. do
  22. if [ -d "$ARG" ] && [[ ":$PATH:" != *":$ARG:"* ]]; then
  23. PATH="${PATH:+"$PATH:"}$ARG"
  24. fi
  25. done
  26. }
  27. pathappend \
  28. "$HOME/bin" \
  29. "$HOME/.local/bin" \
  30. "$HOME/.cargo/bin" \
  31. "$HOME/.poetry/bin" \
  32. "$HOME/.pyenv/bin" \
  33. "/usr/local/go/bin" \
  34. "/usr/sbin"
  35. if [ -d "$HOME/.pyenv/bin" ]; then
  36. eval "$(pyenv init -)"
  37. eval "$(pyenv virtualenv-init -)"
  38. fi
  39. # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src/"