130 lines · 4.1 KB
# Make sure XDG_CONFIG_HOME is a thing
if [[ -z $XDG_CONFIG_HOME ]]; then
    export XDG_CONFIG_HOME="$HOME/.config"
fi
mkdir -p "$XDG_CONFIG_HOME"

# Path
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export PATH="/usr/local/share/npm/bin:$PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/python/libexec/bin:$PATH" # Homebrew Python (typically 3)
export PATH="$HOME/.local/bin:$PATH" # Stack
export PATH="$HOME/.cabal/bin:$PATH" # Cabal
export PATH="$HOME/.cargo/bin:$PATH" # Rust
ruby_prefix=$(brew --prefix ruby)/bin
export PATH=$ruby_prefix/bin:$PATH # rubygems

tty=$(tty)
export GPG_TTY=$tty

#export EDITOR=kak
#export TERM=xterm-256color

if [[ $TERM = 'xterm-kitty' ]]; then
    # This has proved to work better than the ssh kitten for some reason.
    alias ssh='TERM=xterm-256color && ssh'
fi

export CLICOLOR=1
export LSCOLORS=dxfxcxdxbxegedabagacad
alias ls='ls -h'

# Keep TAR from tarring-up resource forks
export COPYFILE_DISABLE=true

# Bash completion
bash_completion=/usr/local/etc/profile.d/bash_completion.sh
# shellcheck disable=1090
[[ -r $bash_completion ]] && . $bash_completion