From 86709fa128ea614fca1aaadd718f51a50032daa4 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Wed, 8 Jul 2020 12:07:34 +0200 Subject: [PATCH] manage bookmarks additions via cli --- dot_zsh_aliases | 1 + dot_zsh_functions | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dot_zsh_aliases b/dot_zsh_aliases index 3980d12..26f7211 100644 --- a/dot_zsh_aliases +++ b/dot_zsh_aliases @@ -70,6 +70,7 @@ alias se='sr -elvi' alias eg='env | grep -i' # search env variables for pattern alias engines='sr -elvi' alias grep='rg' +alias grip='grep -i' alias usernames="python3 $HOME/Code/sherlock/sherlock.py --rank --print-found" alias ygg="torrengo -s ygg" alias ag='alias | grep -i' # search for patten among aliases diff --git a/dot_zsh_functions b/dot_zsh_functions index 3dd6695..9836f83 100644 --- a/dot_zsh_functions +++ b/dot_zsh_functions @@ -374,6 +374,9 @@ function rssadd { ansible 127.0.0.1 -m lineinfile -a "path=~/.newsboat/urls line='"$1"'" newsboat } +function bookmarkadd { + ansible 127.0.0.1 -m lineinfile -a "path=~/Code/bookmarks/README.md insertafter='"$1"' line='* "$2"'" +} function backupgithub { curl -sL "https://api.github.com/users/$1/repos" | jq -r '.[] | .ssh_url' | xargs -n1 git clone --mirror --no-hardlinks }