53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
# .exports dotfile
|
|
export EDITOR="${EDITOR:-hx}"
|
|
export PAGER="${PAGER:-most}"
|
|
export BROWSER="${BROWSER:-brave}"
|
|
export LANG=en_US.UTF-8 # avoid locale issues
|
|
export LC_ALL=en_US.UTF-8
|
|
export GOROOT="/usr/local/go"
|
|
export GOPATH="$HOME/go"
|
|
export PATH=$PATH:$GOROOT/bin
|
|
|
|
# --- fzf ---
|
|
# export FZF_DEFAULT_COMMAND='find . -type f' \
|
|
# fzf --bind 'ctrl-d:reload(find . -type d),ctrl-f:reload(eval "$FZF_DEFAULT_COMMAND")' \
|
|
# --height=50% --layout=reverse
|
|
|
|
# Preview file content using bat (https://github.com/sharkdp/bat)
|
|
# export FZF_CTRL_T_OPTS="
|
|
# --walker-skip .git,node_modules,target
|
|
# --preview 'bat -n --color=always {}'
|
|
# --bind 'ctrl-/:change-preview-window(down|hidden|)'"
|
|
|
|
# CTRL-Y to copy the command into clipboard using pbcopy
|
|
# export FZF_CTRL_R_OPTS="
|
|
# --bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'
|
|
# --color header:italic
|
|
# --header 'Press CTRL-Y to copy command into clipboard'"
|
|
|
|
# Print tree structure in the preview window
|
|
# export FZF_ALT_C_OPTS="
|
|
# --walker-skip .git,node_modules,target
|
|
# --preview 'tree -C {}'"
|
|
|
|
|
|
# Path
|
|
export PATH="$PATH:$HOME/go/bin"
|
|
export PATH="$PATH:$HOME/.scripts"
|
|
export PATH="$PATH:$HOME/.cargo/bin"
|
|
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
|
|
export PATH="$PATH:/usr/local/go/bin"
|
|
export PATH="$PATH:/go/bin"
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
#export PATH="$PATH:$HOME/miniconda3/bin"
|
|
|
|
# clean path:
|
|
export PATH=$(echo "$PATH" | tr ':' '\n' | awk '!seen[$0]++' | paste -sd:)
|
|
|
|
# PY3="python3 -c 'import pty;pty.spawn(\"bin/bash\")'"
|
|
# SHELLEXPORTS="export TERM=xterm;stty rows $(tput lines) columns $(tput cols)"
|
|
|
|
if command -v bat &> /dev/null; then
|
|
# export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
|
export MANPAGER="sh -c 'sed -u -e \"s/\\x1B\[[0-9;]*m//g; s/.\\x08//g\" | bat -p -lman'"
|
|
fi
|