dotfiles

The dotfiles of my personnal laptop.
Log | Files | Refs

.kshrc (1279B)


      1 export NAME="Hugo Soucy"
      2 export EMAIL="hugo@soucy.cc"
      3 export EDITOR="emacsclient -t"
      4 export VISUAL="emacsclient -c -a emacs"
      5 export FCEDIT=$EDITOR
      6 export PAGER=less
      7 export LESS='-iMRS -x2'
      8 export LANG=fr_CA.UTF-8
      9 export LC_CTYPE=fr_CA.UTF-8
     10 export CLICOLOR=1
     11 HISTFILE=$HOME/.ksh_history
     12 HISTSIZE=20000
     13 HISTCONTROL=ignoredups:ignorespace
     14 
     15 # emacs mode gives you the familiar Ctrl-A, Ctrl-E, etc
     16 set -o emacs
     17 
     18 # use colorls if it's installed, plain old ls otherwise
     19 if command -v colorls > /dev/null ; then
     20   LS='colorls'
     21 else
     22   LS='ls'
     23 fi
     24 
     25 if [ -n "$DISPLAY" ]; then
     26     export BROWSER=firefox-esr
     27 else
     28     export BROWSER=w3m
     29 fi
     30 
     31 # aliases
     32 # nothing for now
     33 
     34 export LUA_CPATH='/home/hs0ucy/.luarocks/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/loadall.so;./?.so'
     35 export PATH='/home/hs0ucy/.luarocks/bin:/usr/local/bin:/home/hs0ucy/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/sbin:/usr/games:/home/hs0ucy/.local/bin'
     36 
     37 # nice colored prompt that also sets xterm title
     38 _XTERM_TITLE='\[\033]0;\u@\h:\w\007\]'
     39 _PS1_CLEAR='\[\033[0m\]'
     40 _PS1_BLUE='\[\033[34m\]'
     41 case "$(id -u)" in
     42   0) _PS1_COLOR='\[\033[1;31m\]' ;;
     43   *) _PS1_COLOR='\[\033[32m\]'   ;;
     44 esac
     45 
     46 PS1='$_XTERM_TITLE\A $_PS1_COLOR\u@\h$_PS1_CLEAR:$_PS1_BLUE\w$_PS1_COLOR\$$_PS1_CLEAR '