.profile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. if command -v dircolors 2>&1 >/dev/null; then
  19. eval $(dircolors ~/.dircolors)
  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 \
  30. "$HOME/bin" \
  31. "$HOME/.local/bin" \
  32. "$HOME/.cargo/bin" \
  33. "$HOME/.poetry/bin" \
  34. "$HOME/.pyenv/bin" \
  35. "/usr/local/go/bin" \
  36. "/usr/sbin" \
  37. "$HOME/go/bin"
  38. if [ -d "$HOME/.pyenv/bin" ]; then
  39. eval "$(pyenv init -)"
  40. eval "$(pyenv virtualenv-init -)"
  41. fi
  42. # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src/"
  43. if [ -f "$HOME/.cargo/env" ]; then
  44. source "$HOME/.cargo/env"
  45. fi
  46. if command -v thefuck 2>&1 >/dev/null; then
  47. eval $(thefuck --alias)
  48. fi
  49. if [ -f "$HOME/.local/share/cloudflare-warp-certs/config.sh" ]; then
  50. source $HOME/.local/share/cloudflare-warp-certs/config.sh
  51. fi