Browse Source

Refactor Emacs module

master
Sorin Ionescu 12 years ago
parent
commit
fb5b1be345
  1. 29
      modules/emacs/init.zsh

29
modules/emacs/init.zsh

@ -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
fi
alias cai='carton install' # Prepend Carton bin directory.
alias cau='carton update' path=($HOME/.carton/bin $path)
alias caI='carton init'
alias cae='carton exec'
local completion="$HOME/.carton/etc/carton_completion.zsh" # Load Carton completion
if [[ -e "${completion}" ]]; then source "$HOME/.carton/etc/carton_completion.zsh" 2> /dev/null
source "${completion}"
fi #
fi # Aliases
#
alias cai='carton install'
alias cau='carton update'
alias caI='carton init'
alias cae='carton exec'

Loading…
Cancel
Save