93 lines
2.3 KiB
Bash
Executable file
93 lines
2.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
||
|
||
export EDITOR="emacsclient -t -a emacs"
|
||
|
||
if [[ $(uname -s) == "Darwin" ]]; then
|
||
# set in iTerm, but make this explicit
|
||
export TERM=xterm-256color
|
||
fi
|
||
|
||
if [[ ! -f "$HOME/.config/season" ]]; then
|
||
mkdir -p "$HOME/.config" 2>/dev/null
|
||
echo 'summer' >> "$HOME/.config/season"
|
||
fi
|
||
|
||
if [ "$WSL_DISTRO_NAME" ]; then
|
||
export GDK_SCALE=2
|
||
export QT_SCALE_FACTOR=2
|
||
fi
|
||
|
||
# Prefer US English and use UTF-8.
|
||
export LANG="en_US.UTF-8"
|
||
export LC_ALL="en_US.UTF-8"
|
||
|
||
# Enable persistent REPL history for `node`.
|
||
NODE_REPL_HISTORY_FILE=~/.node_history;
|
||
# Allow 32³ entries; the default is 1000.
|
||
NODE_REPL_HISTORY_SIZE='32768';
|
||
|
||
# Increase Bash history size. Allow 32³ entries; the default is 500.
|
||
export HISTSIZE="32768"
|
||
export HISTFILESIZE="${HISTSIZE}"
|
||
# Omit duplicates and commands that begin with a space from history.
|
||
export HISTCONTROL="ignoreboth"
|
||
# Make some commands not show up in history
|
||
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
|
||
# After each command, append to the history file and reread it.
|
||
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
|
||
|
||
# upstream 9d30bd673c72ed1cadb2720fe4fb44a8ce915a2b
|
||
# Enable persistent REPL history for `node`.
|
||
export NODE_REPL_HISTORY_FILE=~/.node_history
|
||
# Allow 32³ entries; the default is 1000.
|
||
export NODE_REPL_HISTORY_SIZE=32768
|
||
|
||
# Highlight section titles in manual pages.
|
||
SOLAR_BLUE=$(tput setaf 33)
|
||
export LESS_TERMCAP_md="$SOLAR_BLUE"
|
||
|
||
# Don’t clear the screen after quitting a manual page.
|
||
export MANPAGER="less -X"
|
||
|
||
# PERL
|
||
# ====
|
||
export PERL5LIB="${HOME}/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"
|
||
export PERL_LOCAL_LIB_ROOT="${HOME}/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"
|
||
export PERL_MB_OPT="--install_base \"${HOME}/perl5\""
|
||
export PERL_MM_OPT="INSTALL_BASE=${HOME}/perl5"
|
||
|
||
# RUBY
|
||
# ====
|
||
export RUBYOPT=rubygems
|
||
|
||
# GPG
|
||
# ====
|
||
if [ -f "${HOME}/.gpg-agent-info" ]; then
|
||
. "${HOME}/.gpg-agent-info"
|
||
export GPG_AGENT_INFO
|
||
fi
|
||
GPG_TTY=$(tty)
|
||
export GPG_TTY
|
||
|
||
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||
export SSH_AUTH_SOCK
|
||
|
||
if [[ $(uname -s) == "Darwin" ]]; then
|
||
# EMAIL
|
||
# ====
|
||
export MAIL="$HOME/Mail/"
|
||
|
||
# JAVA
|
||
# ====
|
||
export JAVA_HOME=$(/usr/libexec/java_home)
|
||
|
||
# TeX
|
||
# ===
|
||
export BIBINPUTS="$HOME/Dropbox/texmf/bibtex/bib"
|
||
|
||
# Docker
|
||
# ======
|
||
export DOCKER_CLIENT_TIMEOUT=120
|
||
export COMPOSE_HTTP_TIMEOUT=120
|
||
fi
|