diff options
author | Thanos Apollo <[email protected]> | 2023-08-20 14:41:26 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-20 14:41:26 +0300 |
commit | a332ea6dedc5e9d10a75d893211bd6a3e2f5636b (patch) | |
tree | 82bad48aafdf6f62cd0e638d17e189d523b87f29 /emacs.org | |
parent | d7a51dd54060676203e0551060bf222e2c9ea16b (diff) |
emacs: update eshell aliases
Diffstat (limited to 'emacs.org')
-rwxr-xr-x | emacs.org | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1045,13 +1045,21 @@ Create function to watch videos using ~mpv~ (gl . magit-log) (d . dired) (o . find-file) - (oo . find-file-other-window))) + (oo . find-file-other-window) + (ls . "ls -la"))) ;; Define aliases using `mapcar` (mapc (lambda (alias) - (defalias (car alias) (cdr alias))) + (let ((alias-name (if (symbolp (car alias)) + (symbol-name (car alias)) + (car alias))) + (alias-value (if (symbolp (cdr alias)) + (symbol-name (cdr alias)) + (cdr alias)))) + (eshell/alias alias-name alias-value))) thanos/eshell-aliases) + ;; PATH (defvar eshell-path-env (getenv "~/.local/bin")) #+end_src |