From 461e9cfc41b71ccdcf565ce7025a22530370c424 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 22 Apr 2015 20:46:04 -0400 Subject: [PATCH] New zsh alias --- zsh/aliases | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh/aliases b/zsh/aliases index a7095e8c..01c716d8 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -22,7 +22,7 @@ alias ln="${aliases[ln]:-ln} -v" # Verbose ln alias wget='wget -c' # Resume dl if possible alias rsyncd='rsync -va --delete' # Hard sync two directories zman() { PAGER="less -g -s '+/^ "$1"'" man zshall; } -mkd() { mkdir "$1" && cd "$1"; } +mkd() { mkdir "$1" && cd "$1"; } # transmission-remote if is-callable 'transmission-remote'; then @@ -50,6 +50,13 @@ e() { # emacs [ ! $# -eq 0 ] && input=$@ emacsclient -n ${input:-.} } +ee() { # emacs in project root + if git root 2>/dev/null; then + e "$(git rev-parse --show-toplevel)" + else + e . + fi +} # Compilers 'n interpretors alias va='vagrant'