The Meowgorithm Dotfiles, Collectors’ Edition
# 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 (Haskell) puts stuff here
export PATH="$HOME/.cabal/bin:$PATH" # Cabal (Haskell) puts stuff here
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
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
# Prompt
meow_prompt="$XDG_CONFIG_HOME/meowgorithm/prompt"
# shellcheck disable=1090
[[ -f $meow_prompt ]] && . "$XDG_CONFIG_HOME/meowgorithm/prompt"
# Go Stuff