From d483094f0c7dfd421e4be59f3d4fabb263c3885e Mon Sep 17 00:00:00 2001 From: dx Date: Sun, 17 May 2020 09:23:41 +0100 Subject: +elisp support to stow a specific module --- Install.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Install.org') diff --git a/Install.org b/Install.org index 590852a..dc734e5 100644 --- a/Install.org +++ b/Install.org @@ -11,6 +11,19 @@ for pkg in $folders; do stow $pkg done #+END_SRC +* Stow specific module +Little elisp snippet to stow a specific module in the Dotfiles folder using ivy. +#+BEGIN_SRC elisp +(ivy-read + "Enter module: " + (cdr + (reverse + (split-string + (shell-command-to-string "find . -maxdepth 1 -type 'd' -not -name '.git' -not -name '.'") + "\n"))) + :require-match t + :action (lambda (choice) (async-shell-command (format "stow %s" choice) "*stow-output*" "*stow-error*"))) +#+END_SRC * Generate user directories This makes some useful directories that are used by the system and/or by me. I split these into two sections so you can execute the ones you think are useful. -- cgit v1.2.3-13-gbd6f