dotfiles/lib/exports.zsh

24 lines
387 B
Bash
Raw Normal View History

2018-06-15 13:43:04 +00:00
#!/usr/bin/env zsh
2018-02-23 09:38:24 +00:00
export LANG="en_US.UTF-8"
export LC_ALL="$LANG"
2018-06-27 17:04:46 +00:00
2018-07-04 20:55:45 +00:00
if [[ -z "$USER" && -n "$USERNAME" ]]; then
2018-06-27 17:04:46 +00:00
export USER="$USERNAME"
fi
2018-08-23 20:46:00 +00:00
if is_android; then
export DEFAULT_USER="$USER"
else
export DEFAULT_USER="dmitmel"
fi
2018-02-23 09:38:24 +00:00
2018-07-04 20:55:45 +00:00
if [[ -n "$SSH_CONNECTION" ]]; then
2018-02-23 09:38:24 +00:00
export EDITOR="rmate"
else
2018-07-03 08:57:03 +00:00
export EDITOR="code --wait"
2018-02-23 09:38:24 +00:00
fi
2018-07-04 20:55:45 +00:00
export CLICOLOR="1"
2018-02-23 09:38:24 +00:00
export SDKMAN_DIR="$HOME/.sdkman"