Refactor Emacs module

This commit is contained in:
Sorin Ionescu 2013-05-17 21:29:44 -04:00
parent bde5149c7b
commit fb5b1be345

View File

@ -4,17 +4,22 @@
# Authors: Sebastian Wiesner <lunaryorn@gmail.com> # Authors: Sebastian Wiesner <lunaryorn@gmail.com>
# #
# Enable Carton # Return if requirements are not found.
if [[ -d "$HOME/.carton" ]]; then if [[ ! -d "$HOME/.carton" ]]; then
path=($HOME/.carton/bin $path) return 1
alias cai='carton install'
alias cau='carton update'
alias caI='carton init'
alias cae='carton exec'
local completion="$HOME/.carton/etc/carton_completion.zsh"
if [[ -e "${completion}" ]]; then
source "${completion}"
fi
fi fi
# Prepend Carton bin directory.
path=($HOME/.carton/bin $path)
# Load Carton completion
source "$HOME/.carton/etc/carton_completion.zsh" 2> /dev/null
#
# Aliases
#
alias cai='carton install'
alias cau='carton update'
alias caI='carton init'
alias cae='carton exec'