summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-11-18 02:02:44 -0500
committerAmin Bandali <bandali@gnu.org>2018-11-18 02:02:44 -0500
commit73a77e5bda367aa3380d53543be9575dd4000206 (patch)
treeeb00e91caa531fb1f999459c929a1eef8534ee0f
parent05f602d9cfaf567dd0d21bd5c15e9261eb08465c (diff)
downloadconfigs-73a77e5bda367aa3380d53543be9575dd4000206.tar.gz
configs-73a77e5bda367aa3380d53543be9575dd4000206.tar.xz
configs-73a77e5bda367aa3380d53543be9575dd4000206.zip
[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
-rw-r--r--.gitignore7
-rw-r--r--.gitmodules3
-rw-r--r--init.org7
m---------lib/eshell-up0
-rw-r--r--var/eshell/alias16
5 files changed, 32 insertions, 1 deletions
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
+Subproject 9c100bae5c3020e8d9307e4332d3b64e7dc2851
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