mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 18:30:13 +00:00
tmux updates
This commit is contained in:
@ -32,6 +32,8 @@ if status --is-interactive
|
||||
|
||||
# Individual features
|
||||
pyenv
|
||||
notes
|
||||
aws
|
||||
|
||||
# Use `starship` prompt
|
||||
starship init fish | source
|
||||
|
8
fish.configlink/functions/aws.fish
Normal file
8
fish.configlink/functions/aws.fish
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/local/fish
|
||||
|
||||
function aws --description "AWS bindings"
|
||||
function unsetaws --description "Clear AWS credentials environment variables"
|
||||
set -e AWS_ACCESS_KEY_ID
|
||||
set -e AWS_SECRET_ACCESS_KEY
|
||||
end
|
||||
end
|
18
fish.configlink/functions/notes.fish
Normal file
18
fish.configlink/functions/notes.fish
Normal file
@ -0,0 +1,18 @@
|
||||
#!/usr/local/bin/fish
|
||||
|
||||
function notes --description "Notes functions"
|
||||
|
||||
function journal --description "Create today's journal"
|
||||
set today (date -j +"%Y-%m-%d_%a")
|
||||
set today_journal $HOME/Documents/notes/journal/$today.md
|
||||
if [ -f $today_journal ]
|
||||
echo "Already exists."
|
||||
else
|
||||
set yesterday (date -jv "-1d" +"%Y-%m-%d_%a")
|
||||
set tomorrow (date -jv "+1d" +"%Y-%m-%d_%a")
|
||||
printf "[[journal/$yesterday|Previous]] - [[calendar|Index]] - [[journal/$tomorrow|Next]]\n\n---\n\n # Tasks\n\n\n# Log\n\n\n# Communication\n\n---\n\n# Meetings\n\n" > $today_journal
|
||||
echo "New journal added."
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Reference in New Issue
Block a user