mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
misc vim and fish
This commit is contained in:
@ -63,6 +63,11 @@ function aliases --description 'All aliases'
|
||||
# Terraform
|
||||
abbr -a te 'terraform'
|
||||
|
||||
# Kubernetes
|
||||
abbr -a k 'kubectl'
|
||||
abbr -a pods 'kubectl get pods -A'
|
||||
abbr -a nodes 'kubectl get nodes'
|
||||
|
||||
# Python
|
||||
abbr py 'python'
|
||||
alias domisty='cd $PROJ/misty && ./buildrun.sh'
|
||||
|
@ -1,7 +1,19 @@
|
||||
#!/usr/local/bin/fish
|
||||
|
||||
function mactools
|
||||
|
||||
function copy --description 'Copy file contents into clipboard'
|
||||
cat $argv | pbcopy
|
||||
end
|
||||
|
||||
function brewsearch --description "Install brew plugins"
|
||||
set -l inst (brew search | eval "fzf $FZF_DEFAULT_OPTS -m --header='[brew:install]'")
|
||||
|
||||
if not test (count $inst) = 0
|
||||
for prog in $inst
|
||||
brew install "$prog"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -10,7 +10,8 @@ function notes --description "Notes functions"
|
||||
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
|
||||
set weather (curl "https://wttr.in/?format=1")
|
||||
printf "[[journal/$yesterday|Previous]] - [[calendar|Index]] - [[journal/$tomorrow|Next]]\n\n---\n\n$weather\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
|
||||
@ -23,7 +24,8 @@ function notes --description "Notes functions"
|
||||
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
|
||||
set weather (curl "https://wttr.in/?format=1")
|
||||
printf "[[journal/$yesterday|Previous]] - [[calendar|Index]] - [[journal/$tomorrow|Next]]\n\n---\n\n$weather\n\n # Tasks\n\n\n# Log\n\n\n# Communication\n\n---\n\n# Meetings\n\n" > $today_journal
|
||||
echo "New journal added."
|
||||
vim $today_journal
|
||||
end
|
||||
|
Reference in New Issue
Block a user