mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 17:20:13 +00:00
misc vim and fish
This commit is contained in:
@ -26,13 +26,16 @@ SETUVAR _fish_abbr_gs:git\x20status
|
||||
SETUVAR _fish_abbr_gu:git\x20pull
|
||||
SETUVAR _fish_abbr_h:http\x20\x2dFh\x20\x2d\x2dall
|
||||
SETUVAR _fish_abbr_hosts:sudo\x20vim\x20/etc/hosts
|
||||
SETUVAR _fish_abbr_k:kubectl
|
||||
SETUVAR _fish_abbr_l:ls
|
||||
SETUVAR _fish_abbr_la:ls\x20\x2dalhF
|
||||
SETUVAR _fish_abbr_lh:ls\x20\x2dlh
|
||||
SETUVAR _fish_abbr_ll:ls\x20\x2dalhF
|
||||
SETUVAR _fish_abbr_misty:cd\x20\x24PROJ/misty
|
||||
SETUVAR _fish_abbr_nodes:kubectl\x20get\x20nodes
|
||||
SETUVAR _fish_abbr_oldcat:cat
|
||||
SETUVAR _fish_abbr_p:python
|
||||
SETUVAR _fish_abbr_pods:kubectl\x20get\x20pods\x20\x2dA
|
||||
SETUVAR _fish_abbr_public_2D_key:ssh\x2dkeygen\x20\x2dy\x20\x2df\x20\x7e/\x2essh/id_rsa\x20\x3e\x20\x7e/\x2essh/id_rsa\x2epub
|
||||
SETUVAR _fish_abbr_py:python
|
||||
SETUVAR _fish_abbr_runbootstrap:\x24DOTS/scripts/bootstrap
|
||||
|
@ -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