Add did aliases

This commit is contained in:
Johannes Rothe 2023-01-04 20:42:28 +01:00
parent 7b3562f08d
commit 9b859f14d7
6 changed files with 13 additions and 5 deletions

View File

@ -27,5 +27,8 @@ end
fish_add_path ~/go/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
bass source ~/.profile

View File

@ -0,0 +1,4 @@
# Defined in - @ line 1
function did
echo "$(date +"%F") $argv" >> ~/notes/did.md;
end

View 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

View 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

View File

@ -1,4 +0,0 @@
# Defined in - @ line 1
function done
echo "$(date +"%F %H:%M") $argv" >> ~/Documents/done.txt;
end

View File

@ -3,6 +3,5 @@ Description=Sync notes with git-sync
[Service]
Type=oneshot
ExecStartPre=systemctl --user import-environment SSH_AUTH_SOCK
WorkingDirectory={{ home }}/notes/
ExecStart={{ home }}/bin/git-sync -ns