Eshell: Fix aliases
parent
c2d2aec81e
commit
d27660d8b5
|
@ -115,22 +115,24 @@
|
||||||
;;; TODO: This conflicts with `evil-define-key' during the initialization of
|
;;; TODO: This conflicts with `evil-define-key' during the initialization of
|
||||||
;;; the first eshell session: the map in insert-mode will not take the changes
|
;;; the first eshell session: the map in insert-mode will not take the changes
|
||||||
;;; into account. Going to normal mode and back to insert mode works.
|
;;; into account. Going to normal mode and back to insert mode works.
|
||||||
(eshell-read-aliases-list)
|
;;;
|
||||||
|
;;; If we read the alias list here, it means we make commandline-defined aliases persistent.
|
||||||
|
;; (eshell-read-aliases-list)
|
||||||
(dolist
|
(dolist
|
||||||
(alias
|
(alias
|
||||||
'(("l" "ls -1 $*")
|
'(("l" "ls -1 $*")
|
||||||
("la" "ls -lAh $*")
|
("la" "ls -lAh $*")
|
||||||
("ll" "ls -lh $*")
|
("ll" "ls -lh $*")
|
||||||
;; ("ls" "ls -F $*")
|
;; ("ls" "ls -F $*") ; not supported
|
||||||
;; ("emacs" "find-file $1")
|
;; ("emacs" "find-file $1")
|
||||||
;; ("em" "find-file $*")
|
;; ("cp" "eshell/cp -iv $*") ; TODO: Aliasing eshell/{cp,mv,ln} does not work.
|
||||||
("cp" "*cp -i $*")
|
;; ("mv" "eshell/mv -iv $*")
|
||||||
("mv" "*mv -i $*")
|
("cp" "*cp -iv $*")
|
||||||
("mkdir" "*mkdir -p $*")
|
("mv" "*mv -iv $*")
|
||||||
("mkcd" "*mkdir -p $* && cd $1")))
|
("rm" "eshell/rm -v $*")
|
||||||
|
("mkdir" "eshell/mkdir -p $*")
|
||||||
|
("mkcd" "eshell/mkdir -p $* && cd $1")))
|
||||||
(add-to-list 'eshell-command-aliases-list alias))
|
(add-to-list 'eshell-command-aliases-list alias))
|
||||||
(when (executable-find "emerge")
|
|
||||||
(add-to-list 'eshell-command-aliases-list '("emerge" "sudo *emerge --color y $*")))
|
|
||||||
(eshell-write-aliases-list))
|
(eshell-write-aliases-list))
|
||||||
|
|
||||||
;;; Hooks
|
;;; Hooks
|
||||||
|
|
Loading…
Reference in New Issue