eshell aliases and docker as root

This commit is contained in:
Chris Cochrun 2021-05-26 08:22:16 -05:00
parent 10248773d7
commit a7064f8007
2 changed files with 16 additions and 4 deletions

View file

@ -732,7 +732,9 @@ I do a lot of docker management so having yaml is necessary
Docker itself
#+begin_src emacs-lisp
(use-package docker
:defer t)
:defer t
:config
(setq docker-run-as-root t))
#+end_src
Let's make sure docker is capable of using tramp.
@ -808,6 +810,8 @@ I'm making a small function in here to open files in the appropriate program usi
(message file)
(call-process "xdg-open" nil 0 nil file)))
(setq dired-dwim-target t)
:general
(chris/leader-keys
:states 'normal
@ -1674,7 +1678,9 @@ I love using eshell, so lets make some commands even easier with aliases.
("ll" "ls -lah $*")
("gg" "magit-status")
("clear" "clear-scrollback")
("!c" "eshell-previous-input 2")))
("!c" "eshell-previous-input 2")
("yay" "paru")
("yeet" "paru -Rns")))
#+end_src
** Sly

10
init.el
View file

@ -420,7 +420,9 @@ vertically."
:mode ("\\.yml\\'" . yaml-mode))
(use-package docker
:defer t)
:defer t
:config
(setq docker-run-as-root t))
(use-package docker-tramp
:after docker)
@ -467,6 +469,8 @@ vertically."
(message file)
(call-process "xdg-open" nil 0 nil file)))
(setq dired-dwim-target t)
:general
(chris/leader-keys
:states 'normal
@ -1241,7 +1245,9 @@ If on a:
("ll" "ls -lah $*")
("gg" "magit-status")
("clear" "clear-scrollback")
("!c" "eshell-previous-input 2")))
("!c" "eshell-previous-input 2")
("yay" "paru")
("yeet" "paru -Rns")))
(use-package sly
:mode ("\\.lisp\\'" . sly-mode))