#!/bin/sh

### allow group write
umask 002

### PATH
export PATH=./vendor/bin:./node_modules/.bin:~/sbin:~/bin:~/.config/composer/vendor/bin:~/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

### Show disk information in K-Blocks
export BLOCKSIZE=K
### Colorize ls output, unfortunately works for FreeBSD only
export CLICOLOR=1
### See later: https://github.com/trapd00r/LS_COLORS
export LSCOLORS="Gxfxcxdxbxegedabagacad"
### Proper 256-colors TERM
export TERM=screen-256color

### Activate english UTF8 locale and OS specific ls_options
### first default settings
    export LANGUAGE=en_US:en
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    ls_options=''
if [ `uname` = "Linux" ]; then
    export LANG=en_US.utf8
    export LC_ALL=en_US.utf8
    ls_options='--color=auto'
fi

### Set default PAGER && EDITOR && VISUAL
export PAGER="less -S"
export EDITOR=nvim
export VISUAL=nvim
export BROWSER="x-www-browser:local-open"

export RIPGREP_CONFIG_PATH=~/.config/ripgrep/.ripgreprc

### less config
export LESS='-i -x4 -M -R -F -X'
export LESS_TERMCAP_mb=$'\E[1;31m'                  # begin bold
export LESS_TERMCAP_md=$'\E[1;36m'                  # begin blink
export LESS_TERMCAP_me=$'\E[0m'                     # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m'              # begin reverse video
export LESS_TERMCAP_so=$'\E[38;5;016m\E[48;5;220m'  # begin reverse video
export LESS_TERMCAP_se=$'\E[0m'                     # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m'                  # begin underline
export LESS_TERMCAP_ue=$'\E[0m'                     # reset underline
