dotfiles

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

.kshrc (1409B)


      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 # Configure terminal to automatically start tmux as default
     26 #if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
     27 #    tmux attach -t default || tmux new -s default
     28 #fi
     29 
     30 # aliases
     31 #alias ferron='cd ~/Ferron/ && ./cornelius build'
     32 
     33 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'
     34 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'
     35 
     36 # nice colored prompt that also sets xterm title
     37 _XTERM_TITLE='\[\033]0;\u@\h:\w\007\]'
     38 _PS1_CLEAR='\[\033[0m\]'
     39 _PS1_BLUE='\[\033[34m\]'
     40 case "$(id -u)" in
     41   0) _PS1_COLOR='\[\033[1;31m\]' ;;
     42   *) _PS1_COLOR='\[\033[32m\]'   ;;
     43 esac
     44 
     45 # screenfetch
     46 
     47 PS1='$_XTERM_TITLE\A $_PS1_COLOR\u@\h$_PS1_CLEAR:$_PS1_BLUE\w$_PS1_COLOR\$$_PS1_CLEAR '