<commit_before>#-------------------------------------------------------------------------------
#
# shell/editors.zsh
# Editor aliases
#
#-------------------------------------------------------------------------------

# edit
export VISUAL='/usr/local/bin/atom'
alias edit="${VISUAL}"

# e quick edit alias - with no args, opens editor to the current dir
function e() {
	if [ -z "$1" ] ; then
		edit .
	else
		edit "$*"
	fi
}

# o quick open alias - with no args, opens finder to the current dir
function o() {
	if [ -z "$1" ] ; then
		open .
	else
		# -t  Causes the given path to be opened with the default app, as determined via LaunchServices
		open -t "$*"
	fi
}

# Sublime symlink installation
alias subl_link='ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl'

# Profile
alias explain="alias | grep"
alias dotfiles="edit ~/.dotfiles"
alias viprofile="vi ~/.zshrc && reloadprofile"
# TODO: Figure out how to prevent PATH from growing when reloadprofile is invoked
alias reloadprofile="source ~/.zshrc"<commit_msg>Remove obsolete viprofile alias<commit_after>#-------------------------------------------------------------------------------
#
# shell/editors.zsh
# Editor aliases
#
#-------------------------------------------------------------------------------

# edit
export VISUAL='/usr/local/bin/atom'
alias edit="${VISUAL}"

# e quick edit alias - with no args, opens editor to the current dir
function e() {
	if [ -z "$1" ] ; then
		edit .
	else
		edit "$*"
	fi
}

# o quick open alias - with no args, opens finder to the current dir
function o() {
	if [ -z "$1" ] ; then
		open .
	else
		# -t  Causes the given path to be opened with the default app, as determined via LaunchServices
		open -t "$*"
	fi
}

# Sublime symlink installation
alias subl_link='ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl'

# Profile
alias explain="alias | grep"
alias dotfiles="edit ~/.dotfiles"

# TODO: Figure out how to prevent PATH from growing when reloadprofile is invoked
alias reloadprofile="source ~/.zshrc"
{'fraction_non_alphanumeric': 0.25529865125240847, 'fraction_numerical': 0.0019267822736030828, 'mean_word_length': 2.0014450867052025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1046155', 'n_tokens_mistral': 621, 'n_tokens_neox': 592, 'n_words': 214}