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