dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE

profile (1552B)


      1 #!/bin/sh
      2 export LANG=en_US.UTF-8
      3 export LC_ALL=en_US.UTF-8
      4 if type vise >/dev/null 2>&1; then
      5 	export EDITOR=vise
      6 elif type vis >/dev/null 2>&1; then
      7 	export EDITOR=vis
      8 else
      9 	export EDITOR=vi
     10 fi
     11 export FCEDIT="$EDITOR"
     12 export TERMINAL=st
     13 export FILE=nnn
     14 export BROWSER=surf-open.sh
     15 export BIB="$HOME/articles/own/BIBnew.bib"
     16 export SXHKD_SHELL=/bin/sh
     17 export PAGER=less
     18 GPG_TTY=$(tty)
     19 export GPG_TTY
     20 [ -f ~/.secret_env_vars ] && . ~/.secret_env_vars
     21 export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"
     22 
     23 NNN_BMS="a:$HOME/articles;b:$HOME/books;c:$HOME/code;d:$HOME/doc;g:$HOME/articles/glaciology_sedimentology;m:/mnt;s:$HOME/uni/postdoc/stanford-sigma;t:$HOME/tmp;u:$HOME/uni;v:$HOME/videos"
     24 NNN_PLUG="o:fzf-open;e:fzf-edit;u:upload;m:movie-info;c:copy-selection-to-clipboard"
     25 export NNN_BMS                        # bookmarks (max 10)
     26 export NNN_PLUG                       # x-key binds (max 10)
     27 export NNN_USE_EDITOR=1               # always open text files in $EDITOR
     28 #export NNN_OPENER="$HOME/.local/bin/xdg-open"
     29 export NNN_OPENER_DETACH=1            # do not block nnn with file opener
     30 export NNN_NOTE="$HOME/doc/todo.md"
     31 
     32 export FZF_DEFAULT_OPTS="--exit-0 --select-1 --preview 'cat {} 2>/dev/null'"
     33 export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
     34 export FZF_CTRL_R_OPTS="--exit-0 --select-1 --preview-window=up:0"
     35 if [ -x "$(command -v rg)" ]; then
     36 	export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --glob "!.git/*"'
     37 elif [ -x "$(command -v ag)" ]; then
     38 	export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -f --nocolor -g ""'
     39 fi