Add did aliases
This commit is contained in:
parent
7b3562f08d
commit
9b859f14d7
@ -27,5 +27,8 @@ end
|
|||||||
fish_add_path ~/go/bin/
|
fish_add_path ~/go/bin/
|
||||||
fish_add_path ~/bin/
|
fish_add_path ~/bin/
|
||||||
|
|
||||||
|
# being able to use ssh in systemd user service
|
||||||
|
systemctl --user import-environment SSH_AUTH_SOCK
|
||||||
|
|
||||||
# set work specific stuff in there like GIT_AUTHOR_EMAIL and JIRA_API_TOKEN
|
# set work specific stuff in there like GIT_AUTHOR_EMAIL and JIRA_API_TOKEN
|
||||||
bass source ~/.profile
|
bass source ~/.profile
|
||||||
|
4
roles/dotfiles/files/fish/functions/did.fish
Normal file
4
roles/dotfiles/files/fish/functions/did.fish
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Defined in - @ line 1
|
||||||
|
function did
|
||||||
|
echo "$(date +"%F") $argv" >> ~/notes/did.md;
|
||||||
|
end
|
3
roles/dotfiles/files/fish/functions/didc.fish
Normal file
3
roles/dotfiles/files/fish/functions/didc.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function didc --wraps='cat ~/notes/did.md | tail -n 10' --description 'alias didc=cat ~/notes/did.md | tail -n 10'
|
||||||
|
cat ~/notes/did.md | tail -n 10 $argv;
|
||||||
|
end
|
3
roles/dotfiles/files/fish/functions/dide.fish
Normal file
3
roles/dotfiles/files/fish/functions/dide.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function dide --wraps='vim ~/notes/did.md' --wraps=vim\ \'+normal\ G\'\ \~/notes/did.md --description alias\ dide=vim\ \'+normal\ G\'\ \~/notes/did.md
|
||||||
|
vim '+normal G' ~/notes/did.md $argv;
|
||||||
|
end
|
@ -1,4 +0,0 @@
|
|||||||
# Defined in - @ line 1
|
|
||||||
function done
|
|
||||||
echo "$(date +"%F %H:%M") $argv" >> ~/Documents/done.txt;
|
|
||||||
end
|
|
@ -3,6 +3,5 @@ Description=Sync notes with git-sync
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStartPre=systemctl --user import-environment SSH_AUTH_SOCK
|
|
||||||
WorkingDirectory={{ home }}/notes/
|
WorkingDirectory={{ home }}/notes/
|
||||||
ExecStart={{ home }}/bin/git-sync -ns
|
ExecStart={{ home }}/bin/git-sync -ns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user