Add Justfile to Replace Simple Scripts

- Update submodules to use working ssh remote and pull in updates
- Remove doom and stow scripts in favor of a justfile
This commit is contained in:
Sravan Balaji
2024-02-27 21:02:02 -05:00
parent b458967aa7
commit e4e2adf3eb
11 changed files with 56 additions and 101 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/bash
# Define some local variables
DOOM_BIN=~/.config/doom-emacs/bin/doom
DOOM_DIR_PATH=~/.config/doom-emacs-config
# Check for errors with installation
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN doctor

View File

@@ -1,7 +0,0 @@
#!/bin/bash
# Define some local variables
DOOM_BIN=~/.config/doom-emacs/bin/doom
DOOM_DIR_PATH=~/.config/doom-emacs-config
# Sync Doom with personal configuration
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN sync

View File

@@ -1,13 +0,0 @@
#!/bin/bash
# Define some local variables
DOOM_BIN=~/.config/doom-emacs/bin/doom
DOOM_DIR_PATH=~/.config/doom-emacs-config
# Upgrade Doom to the latest version (then update your packages). This is equivalent to
# $ git pull
# $ doom sync
# $ doom update
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN upgrade
# Delete orphaned packages & repos, and compacts them
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN purge

View File

@@ -1,3 +0,0 @@
#!/bin/bash
cd $HOME/.dotfiles/
stow -v .

View File

@@ -1,3 +0,0 @@
#!/bin/bash
cd $HOME/.dotfiles/
stow -v -D .

View File

@@ -10,8 +10,6 @@
- [[#ignoring-files-and-directories][Ignoring files and directories]]
- [[#gnu-stow-ignore][GNU Stow Ignore]]
- [[#git-ignore][Git Ignore]]
- [[#create-symbolic-links-with-gnu-stow][Create Symbolic Links with GNU Stow]]
- [[#remove-symbolic-links-with-gnu-stow][Remove Symbolic Links with GNU Stow]]
- [[#git][Git]]
- [[#gitconfig][Gitconfig]]
- [[#notifications][Notifications]]
@@ -62,7 +60,6 @@
- [[#vim][Vim]]
- [[#emacs][Emacs]]
- [[#chemacs2][Chemacs2]]
- [[#doom-emacs-scripts][DOOM Emacs Scripts]]
- [[#vs-code][VS Code]]
- [[#settings][Settings]]
- [[#keybindings][Keybindings]]
@@ -109,6 +106,7 @@
- [[#sizes][Sizes]]
- [[#application-specific-changes][Application Specific Changes]]
- [[#startup][Startup]]
- [[#justfile][Justfile]]
- [[#miscellaneous-scripts][Miscellaneous Scripts]]
- [[#media-control][Media Control]]
- [[#volume-control][Volume Control]]
@@ -290,20 +288,6 @@ Things to ignore in dotfiles git repo.
.themes/dracula-pro
#+END_SRC
** Create Symbolic Links with GNU Stow
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/stow-create.sh
cd $HOME/.dotfiles/
stow -v .
#+END_SRC
** Remove Symbolic Links with GNU Stow
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/stow-remove.sh
cd $HOME/.dotfiles/
stow -v -D .
#+END_SRC
* Git
** Gitconfig
@@ -7758,53 +7742,6 @@ Select the emacs configuration to use by default.
doom
#+END_SRC
*** DOOM Emacs Scripts
**** Update
Script to update Doom Emacs configuration.
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/doom_emacs_update.sh
# Define some local variables
DOOM_BIN=~/.config/doom-emacs/bin/doom
DOOM_DIR_PATH=~/.config/doom-emacs-config
# Upgrade Doom to the latest version (then update your packages). This is equivalent to
# $ git pull
# $ doom sync
# $ doom update
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN upgrade
# Delete orphaned packages & repos, and compacts them
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN purge
#+END_SRC
**** Sync
Script to synchronize Doom Emacs configuration
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/doom_emacs_sync.sh
# Define some local variables
DOOM_BIN=~/.config/doom-emacs/bin/doom
DOOM_DIR_PATH=~/.config/doom-emacs-config
# Sync Doom with personal configuration
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN sync
#+END_SRC
**** Doctor
Script to check for errors with Doom Emacs install
#+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/doom_emacs_doctor.sh
# Define some local variables
DOOM_BIN=~/.config/doom-emacs/bin/doom
DOOM_DIR_PATH=~/.config/doom-emacs-config
# Check for errors with installation
DOOMDIR=$DOOM_DIR_PATH $DOOM_BIN doctor
#+END_SRC
** VS Code
*** Settings
@@ -9889,6 +9826,34 @@ main() {
main $@
#+END_SRC
* Justfile
#+BEGIN_SRC just :tangle justfile
set shell := ["bash", "-c"]
DOOM_BIN := "~/.config/doom-emacs/bin/doom"
DOOM_DIR_PATH := "~/.config/doom-emacs-config"
doom-emacs-update: && doom-emacs-sync
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} upgrade
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} purge
doom-emacs-sync:
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} sync
doom-emacs-doctor:
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} doctor
stow-create:
stow -v -S .
stow-delete:
stow -v -D .
stow-recreate:
stow -v -R .
#+END_SRC
* Miscellaneous Scripts
** Media Control

23
justfile Normal file
View File

@@ -0,0 +1,23 @@
set shell := ["bash", "-c"]
DOOM_BIN := "~/.config/doom-emacs/bin/doom"
DOOM_DIR_PATH := "~/.config/doom-emacs-config"
doom-emacs-update: && doom-emacs-sync
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} upgrade
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} purge
doom-emacs-sync:
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} sync
doom-emacs-doctor:
DOOMDIR={{DOOM_DIR_PATH}} {{DOOM_BIN}} doctor
stow-create:
stow -v -S .
stow-delete:
stow -v -D .
stow-recreate:
stow -v -R .