manage bookmarks additions via cli

This commit is contained in:
MorganGeek 2020-07-08 12:07:34 +02:00
parent 9e8cc03e01
commit 86709fa128
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,7 @@ alias se='sr -elvi'
alias eg='env | grep -i' # search env variables for pattern alias eg='env | grep -i' # search env variables for pattern
alias engines='sr -elvi' alias engines='sr -elvi'
alias grep='rg' alias grep='rg'
alias grip='grep -i'
alias usernames="python3 $HOME/Code/sherlock/sherlock.py --rank --print-found" alias usernames="python3 $HOME/Code/sherlock/sherlock.py --rank --print-found"
alias ygg="torrengo -s ygg" alias ygg="torrengo -s ygg"
alias ag='alias | grep -i' # search for patten among aliases alias ag='alias | grep -i' # search for patten among aliases

View File

@ -374,6 +374,9 @@ function rssadd {
ansible 127.0.0.1 -m lineinfile -a "path=~/.newsboat/urls line='"$1"'" ansible 127.0.0.1 -m lineinfile -a "path=~/.newsboat/urls line='"$1"'"
newsboat newsboat
} }
function bookmarkadd {
ansible 127.0.0.1 -m lineinfile -a "path=~/Code/bookmarks/README.md insertafter='"$1"' line='* "$2"'"
}
function backupgithub { function backupgithub {
curl -sL "https://api.github.com/users/$1/repos" | jq -r '.[] | .ssh_url' | xargs -n1 git clone --mirror --no-hardlinks curl -sL "https://api.github.com/users/$1/repos" | jq -r '.[] | .ssh_url' | xargs -n1 git clone --mirror --no-hardlinks
} }