From: Amin Bandali Date: Sun, 18 Nov 2018 07:02:44 +0000 (-0500) Subject: [emacs] assimilate and add eshell-up, add eshell aliases file X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/73a77e5bda367aa3380d53543be9575dd4000206?ds=inline;hp=05f602d9cfaf567dd0d21bd5c15e9261eb08465c [emacs] assimilate and add eshell-up, add eshell aliases file eshell aliases file based on https://github.com/dakra/dmacs/blob/master/etc/eshell-aliases --- diff --git a/.gitignore b/.gitignore index 6a2dcca..d949b2b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,9 @@ /early-init.el /init.el -/var + +/var/* +/var/eshell/history + +!/var/eshell +!/var/eshell/alias diff --git a/.gitmodules b/.gitmodules index 9923021..515dd81 100644 --- a/.gitmodules +++ b/.gitmodules @@ -85,6 +85,9 @@ [submodule "epl"] path = lib/epl url = git@github.com:cask/epl.git +[submodule "eshell-up"] + path = lib/eshell-up + url = git@github.com:peterwvj/eshell-up.git [submodule "evil"] path = lib/evil url = git@github.com:emacs-evil/evil.git diff --git a/init.org b/init.org index b6fe1b8..ed8bddb 100644 --- a/init.org +++ b/init.org @@ -1956,6 +1956,13 @@ For when I /have to/ use GH. (setq magithub-clone-default-directory "~/src/git")) #+end_src +** [[https://github.com/peterwvj/eshell-up][eshell-up]] + +#+begin_src emacs-lisp +(use-package eshell-up + :after eshell) +#+end_src + * Email #+begin_src emacs-lisp diff --git a/lib/eshell-up b/lib/eshell-up new file mode 160000 index 0000000..9c100ba --- /dev/null +++ b/lib/eshell-up @@ -0,0 +1 @@ +Subproject commit 9c100bae5c3020e8d9307e4332d3b64e7dc28519 diff --git a/var/eshell/alias b/var/eshell/alias new file mode 100644 index 0000000..77c8c38 --- /dev/null +++ b/var/eshell/alias @@ -0,0 +1,16 @@ +alias .. cd .. +alias ... cd ../.. +alias e find-file-other-window $1 +alias ee find-file $1 +alias emacs find-file $1 +alias gd magit-diff-unstaged +alias gds magit-diff-staged +alias git git --no-pager $* +alias l ls -l $* +alias la ls -al $* +alias ll ls -al $* +alias man woman $1 +alias up eshell-up $1 +alias pk eshell-up-peek $1 +alias vi find-file $1 +alias vim find-file $1