dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

rc (689B)


      1 #!/bin/sh
      2 # shellcheck disable=SC2016
      3 if command -v startx >/dev/null 2>&1 && [ "$(tty)" = "/dev/tty1" ]; then
      4   pgrep dwm || startx
      5 fi
      6 [ -n "$DOTFILES" ] || { printf '$DOTFILES not set, press enter to quit' && read -r && exit 1; }
      7 
      8 source_if_exists() { [ -f "$1" ] && . "$1"; }
      9 
     10 # Enable virtualenvwrapper if installed
     11 if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
     12   . /usr/local/bin/virtualenvwrapper_lazy.sh
     13 fi
     14 
     15 (cat ~/.cache/wal/sequences &)
     16 . ~/.cache/wal/colors-tty.sh
     17 
     18 # The 'z' command to jump around dirs
     19 source_if_exists "$DOTFILES"/shell/z/z.sh
     20 
     21 # Enable custom aliases and functions
     22 source_if_exists "$DOTFILES/shell/aliases"
     23 source_if_exists "$DOTFILES/shell/functions"