dotfiles

Dotfiles for my OpenBSD environment.
git clone https://git.mtkn.jp/dotfiles
Log | Files | Refs

.profile (1016B)


      1 #!/bin/sh
      2 
      3 export ENV=$HOME/.shrc
      4 
      5 # ~/ clean up:
      6 export XDG_CONFIG_HOME="$HOME/.config"
      7 export XDG_CACHE_HOME="$HOME/.cache"
      8 export XDG_DATA_HOME="$HOME/.local/share"
      9 export XDG_RUNTIME_DIR="/tmp/xdg_runtime_dir_$USER"
     10 #export DBUS_SESSION_BUS_ADDRESS="no"
     11 
     12 [ ! -d $XDG_CONFIG_HOME ] && mkdir -p $XDG_CONFIG_HOME
     13 [ ! -d $XDG_CACHE_HOME ] && mkdir -p $XDG_CACHE_HOME
     14 [ ! -d $XDG_DATA_HOME ] && mkdir -p $XDG_DATA_HOME
     15 [ ! -d $XDG_RUNTIME_DIR ] && mkdir -p $XDG_RUNTIME_DIR
     16 
     17 export HISTFILE="$XDG_CACHE_HOME/sh_history"
     18 
     19 export X11HOME="$XDG_CONFIG_HOME/X11"
     20 export XINITRC="$X11HOME/xinitrc"
     21 #export XAUTHORITY="$XDG_CACHE_HOME/X11/Xauthority"
     22 [ ! -d $X11HOME ] && mkdir -p $X11HOME
     23 [ ! -d $XDG_CACHE_HOME/X11 ] && mkdir -p $XDG_CACHE_HOME/X11
     24 
     25 # less
     26 export LESSHISTFILE=-
     27 
     28 # vi/nvi
     29 export EXINIT='set autoindent wraplen=80'
     30 
     31 export BROWSER="firefox"
     32 export TERMINAL="st"
     33 export EDITOR="nvi"
     34 export PATH="$PATH:$HOME/bin:/usr/local/heirloom-doctools/bin:/usr/local/riscv32-esp-elf/bin/"
     35 export LC_CTYPE=en_US.UTF-8