aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-17 09:23:41 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-17 09:23:41 +0100
commitd483094f0c7dfd421e4be59f3d4fabb263c3885e (patch)
tree6cbda359e2dfd98ab9ea48fcab54e3e6b9a55c3f
parent3a3e0dbeb3331a14bbcbd8a4f00d01841efa1d9f (diff)
downloaddotfiles-d483094f0c7dfd421e4be59f3d4fabb263c3885e.tar.gz
dotfiles-d483094f0c7dfd421e4be59f3d4fabb263c3885e.tar.bz2
dotfiles-d483094f0c7dfd421e4be59f3d4fabb263c3885e.zip
+elisp support to stow a specific module
-rw-r--r--Install.org13
1 files changed, 13 insertions, 0 deletions
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.