Compare commits
No commits in common. "68ea0a3edaaaeaf0a7b3e31c8a93f129e61fcc64" and "7ce24d937c207e96b515cfe87a29059dfaafee5a" have entirely different histories.
68ea0a3eda
...
7ce24d937c
@ -75,7 +75,6 @@
|
||||
EDITOR = "nvim";
|
||||
BROWSER = "qutebrowser";
|
||||
TERMINAL = "alacritty";
|
||||
SECOND_BRAIN = "$HOME/Documents/sb";
|
||||
};
|
||||
|
||||
# Fix environmental variables not loaded in plasma x11
|
||||
|
@ -2,20 +2,15 @@
|
||||
|
||||
with pkgs;
|
||||
stdenv.mkDerivation {
|
||||
pname = "scripts";
|
||||
pname = "blog";
|
||||
version = "1";
|
||||
src = ./scripts;
|
||||
src = ./scripts/blog;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mv blog $out/bin/blog
|
||||
|
||||
# Move scripts to bin
|
||||
mv ./* $out/bin
|
||||
|
||||
# Fix shebangs for the scripts
|
||||
patchShebangs $out/bin
|
||||
|
||||
# Add dependencies to the runtime for my blog script
|
||||
patchShebangs $out/bin/blog
|
||||
wrapProgram $out/bin/blog \
|
||||
--prefix PATH : ${lib.makeBinPath [ hugo rsync git ]}
|
||||
'';
|
||||
|
@ -1,44 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Based on day script from mischavandenburg
|
||||
# url: https://github.com/mischavandenburg/dotfiles/blob/main/scripts/day
|
||||
|
||||
today=$(date +"%Y-%m-%d")
|
||||
tomorrow=$(date -d "tomorrow" '+%Y-%m-%d')
|
||||
yesterday=$(date -d "yesterday" '+%Y-%m-%d')
|
||||
file="$SECOND_BRAIN"'/periodic/daily/'"$today.md"
|
||||
|
||||
cd "$SECOND_BRAIN" || exit 1
|
||||
|
||||
new_note() {
|
||||
touch "$file"
|
||||
|
||||
# Give me a nice format
|
||||
cat <<EOF >"$file"
|
||||
# $today
|
||||
|
||||
[[$yesterday]] - [[$tomorrow]]
|
||||
|
||||
## Intention
|
||||
|
||||
What do I want to achieve today and tomorrow?
|
||||
|
||||
## Tracking
|
||||
|
||||
- [ ] Cycle
|
||||
- [ ] Strength training
|
||||
- [ ] Watch a movie or tv show episode
|
||||
- [ ] Play/finish a game
|
||||
- [ ] Post a blog post
|
||||
- [ ] Check servers
|
||||
- [ ] Check backups
|
||||
|
||||
## Log
|
||||
EOF
|
||||
}
|
||||
|
||||
if [ ! -f "$file" ]; then
|
||||
new_note
|
||||
fi
|
||||
|
||||
nvim '+ normal Gzzo' "$file"
|
@ -6,7 +6,11 @@
|
||||
enableCompletion = true;
|
||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
dotDir = ".config/zsh";
|
||||
shellAliases = { lg = "lazygit"; };
|
||||
shellAliases = {
|
||||
note = "cd ~/Documents/wiki && nvim ~/Documents/wiki/notes.md";
|
||||
wiki = "cd ~/Documents/wiki && nvim ~/Documents/wiki/index.md";
|
||||
lg = "lazygit";
|
||||
};
|
||||
envExtra = ''
|
||||
# NNN settings
|
||||
export NNN_FIFO="/tmp/nnn.fifo"
|
||||
|
Loading…
Reference in New Issue
Block a user