]> apps.delaporte.us Git - dotfiles.git/commitdiff
Update wtfutil
authorEdward Delaporte <edward@delaporte.us>
Sat, 8 Jun 2024 04:51:06 +0000 (23:51 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sat, 8 Jun 2024 04:52:08 +0000 (23:52 -0500)
files/todo-txt.config
install/powershell.sh
install/todo.sh
setup/todo.sh [new file with mode: 0755]

index 0d50406445545d0bd9c653b4ea4fc126737e8c53..b3e7b6f05fa6a5bb0f37073023d04e80a1de989e 100644 (file)
@@ -3,7 +3,7 @@
 # Your todo.txt directory (this should be an absolute path)
 #export TODO_DIR="/Users/gina/Documents/todo"
 # export TODO_DIR=${HOME:-$USERPROFILE}
 # Your todo.txt directory (this should be an absolute path)
 #export TODO_DIR="/Users/gina/Documents/todo"
 # export TODO_DIR=${HOME:-$USERPROFILE}
-export TODO_DIR="/home/edward/Journal/markor"
+export TODO_DIR="/home/edward/notes/2024.02.Pixel7A/markor"
 
 # Your todo/done/report.txt locations
 export TODO_FILE="$TODO_DIR/todo.txt"
 
 # Your todo/done/report.txt locations
 export TODO_FILE="$TODO_DIR/todo.txt"
index 038e76abff9d602b1b6cb22e299e62377ec3180d..fc113cba14570ce0d14fcda2be9bcd946d6b1488 100755 (executable)
@@ -1,4 +1,31 @@
 if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
 if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
-       echo "************** Install PowerShell"
-       sudo apt-get install powershell
+
+###################################
+# Prerequisites
+
+# Update the list of packages
+sudo apt-get update
+
+# Install pre-requisite packages.
+sudo apt-get install -y wget
+
+# Get the version of Debian
+source /etc/os-release
+
+# Download the Microsoft repository GPG keys
+wget -q https://packages.microsoft.com/config/debian/$VERSION_ID/packages-microsoft-prod.deb
+
+# Register the Microsoft repository GPG keys
+sudo dpkg -i packages-microsoft-prod.deb
+
+# Delete the Microsoft repository GPG keys file
+rm packages-microsoft-prod.deb
+
+# Update the list of packages after we added packages.microsoft.com
+sudo apt-get update
+
+###################################
+# Install PowerShell
+sudo apt-get install -y powershell
+
 fi
\ No newline at end of file
 fi
\ No newline at end of file
index 5806ae715a8e1512ea16b22b395965e569db5655..b65b27c772f1439b543c8730f6ddf36f047bc188 100644 (file)
@@ -1,10 +1 @@
-sudo apt install todotxt-cli
-
-rm ~/.todo-txt/todo.txt
-ln ~/Journal/markor/todo.txt ~/.todo-txt/todo.txt
-
-rm ~/.todo-txt/done.txt
-ln ~/Journal/markor/done.txt ~/.todo-txt/done.txt
-
-rm ~/.todo-txt/report.txt
-ln ~/Journal/markor/report.txt ~/.todo-txt/report.txt
\ No newline at end of file
+sudo apt install todotxt-cli
\ No newline at end of file
diff --git a/setup/todo.sh b/setup/todo.sh
new file mode 100755 (executable)
index 0000000..4af3922
--- /dev/null
@@ -0,0 +1,13 @@
+JOURNAL_HOME=~/notes/Journal
+
+rm ~/.todo-txt/todo.txt
+touch $JOURNAL_HOME/todo.txt
+ln $JOURNAL_HOME/todo.txt ~/.todo-txt/todo.txt
+
+rm ~/.todo-txt/done.txt
+touch $JOURNAL_HOME/done.txt
+ln $JOURNAL_HOME/done.txt ~/.todo-txt/done.txt
+
+rm ~/.todo-txt/report.txt
+touch $JOURNAL_HOME/report.txt
+ln $JOURNAL_HOME/report.txt ~/.todo-txt/report.txt
\ No newline at end of file