.sh

[sh] Multi-shell dotfiles manager
git clone https://git.torresjrjr.com/.sh.git
Log | Files | Refs | README | LICENSE

.profile (961B)


      1 #
      2 # ~/.profile
      3 #
      4 # Local script for interactive POSIX login sh
      5 
      6 # sidestep tmux's invocation of login shells
      7 [ -n "$TMUX" ] && return
      8 
      9 
     10 ## Env
     11 
     12 # shell
     13 
     14 export DOTSHELL="$HOME/.sh"
     15 export ENV="$DOTSHELL/sh/.init.sh"  # see sh(1)
     16 export INPUTRC="$DOTSHELL/misc/.inputrc"
     17 
     18 # system
     19 
     20 export PATH="$HOME/.local/bin:$PATH"
     21 export PATH="$DOTSHELL/bin:$PATH"
     22 export PATH="$HOME/lib/bin:$PATH"
     23 export PATH="$HOME/bin/$(uname -n):$PATH"
     24 export PATH="$HOME/bin:$PATH"
     25 
     26 export XDG_CONFIG_HOME="$HOME/.config"
     27 export XDG_CACHE_HOME="$HOME/.cache"
     28 export XDG_DATA_HOME="$HOME/.local/share"
     29 
     30 export EDITOR='vim'
     31 export PAGER='less'
     32 
     33 # dev
     34 
     35 export GOPATH="$HOME/lib/go"
     36 export GOPROXY='direct'
     37 
     38 export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
     39 
     40 # utils
     41 
     42 export LESSHISTFILE="$XDG_CACHE_HOME/less/lesshst"
     43 
     44 export PASSWORD_STORE_DIR="$HOME/.pass"
     45 export PASSWORD_STORE_GENERATED_LENGTH=64
     46 
     47 
     48 ## Local
     49 
     50 [ -f "$DOTSHELL/local/.profile" ] &&
     51    . "$DOTSHELL/local/.profile"