Dotfiles for different machines on different branches.
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.

20 lines
861 B

  1. #!/bin/sh
  2. # Profile file. Runs on login.
  3. # Adds `~/.local/bin` and all subdirectories to $PATH
  4. export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
  5. export EDITOR="nvim"
  6. export ZDOTDIR="$HOME"
  7. # less/man colors
  8. export LESS=-R
  9. export LESS_TERMCAP_mb="$(printf '%b' '[[1;31m')"; a="${a%_}"
  10. export LESS_TERMCAP_md="$(printf '%b' '[[1;36m')"; a="${a%_}"
  11. export LESS_TERMCAP_me="$(printf '%b' '[[0m')"; a="${a%_}"
  12. export LESS_TERMCAP_so="$(printf '%b' '[[01;44;33m')"; a="${a%_}"
  13. export LESS_TERMCAP_se="$(printf '%b' '[[0m')"; a="${a%_}"
  14. export LESS_TERMCAP_us="$(printf '%b' '[[1;32m')"; a="${a%_}"
  15. export LESS_TERMCAP_ue="$(printf '%b' '[[0m')"; a="${a%_}"
  16. echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc"
  17. echo "$0" | grep "zsh$" >/dev/null && [ -f $ZDOTDIR/.zshrc ] && source "$ZDOTDIR/.zshrc"