Track eshell aliases in git
This commit is contained in:
parent
5a7e1b1bef
commit
cfbe6c2f87
8
emacs/.emacs.d/eshell/alias
Normal file
8
emacs/.emacs.d/eshell/alias
Normal file
@ -0,0 +1,8 @@
|
||||
alias root cd (projectile-project-root)
|
||||
alias php-debug php -d xdebug.remote_enable=on -d xdebug.remote_host=127.0.0.1 -d xdebug.remote_port=9000 -d xdebug.remote_handler=dbgp -d xdebug.idekey=geben -d xdebug.remote_autostart=On $*
|
||||
alias tf terraform $*
|
||||
alias helm /usr/local/bin/helm $*
|
||||
alias sortpom mvn com.github.ekryd.sortpom:sortpom-maven-plugin:sort -Dsort.keepBlankLines -Dsort.sortDependencies=scope,groupId,artifactId -Dsort.createBackupFile=false $*
|
||||
alias kctx kubectx $*
|
||||
alias k kubectl $*
|
||||
alias kns kubens $*
|
@ -2627,24 +2627,6 @@ A function to properly clear the eshell:
|
||||
(lambda () (general-def eshell-mode-map "C-c C-o" #'clear-eshell)))
|
||||
#+END_SRC
|
||||
|
||||
Some aliases:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defvar eshell-aliases nil
|
||||
"Aliases loaded when Eshell starts")
|
||||
|
||||
(setq eshell-aliases
|
||||
'(("root" . "cd (projectile-project-root)")))
|
||||
|
||||
(add-hook
|
||||
'eshell-mode-hook
|
||||
(lambda ()
|
||||
(dolist (alias eshell-aliases)
|
||||
(eshell/alias (car alias) (cdr alias)))))
|
||||
|
||||
(defun def-eshell-alias! (alias command)
|
||||
(add-to-list 'eshell-aliases (cons alias command)))
|
||||
#+END_SRC
|
||||
|
||||
** Prompt
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun jdormit-eshell-prompt ()
|
||||
@ -3461,14 +3443,6 @@ Some keybindings to start and end Geben:
|
||||
(general-def php-mode-map "C-c C-q" #'geben-end)
|
||||
#+END_SRC
|
||||
|
||||
An Eshell alias to start PHP using XDebug:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'eshell-mode-hook
|
||||
(lambda ()
|
||||
(eshell/alias "php-debug"
|
||||
"php -d xdebug.remote_enable=on -d xdebug.remote_host=127.0.0.1 -d xdebug.remote_port=9000 -d xdebug.remote_handler=dbgp -d xdebug.idekey=geben -d xdebug.remote_autostart=On $*")))
|
||||
#+END_SRC
|
||||
|
||||
LSP for PHP requires [[https://github.com/felixfbecker/php-language-server][php-language-server]] to be installed in ~/.composer:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-hook 'php-mode-hook #'lsp-deferred)
|
||||
|
Loading…
Reference in New Issue
Block a user