diff --git a/global/.newsboat/config b/global/.newsboat/config new file mode 100644 index 0000000..2cafac6 --- /dev/null +++ b/global/.newsboat/config @@ -0,0 +1,33 @@ +# general settings +auto-reload yes +max-items 50 + +# external browser +include config-macos + +# unbind keys +unbind-key ENTER +unbind-key j +unbind-key k +unbind-key J +unbind-key K + +# bind keys - vim style +bind-key j down +bind-key k up +bind-key l open +bind-key h quit + +# solarized +color background default default +color listnormal default default +color listnormal_unread default default +color listfocus black cyan +color listfocus_unread black cyan +color info default black +color article default default + +# highlights +highlight article "^(Title):.*$" blue default +highlight article "https?://[^ ]+" red default +highlight article "\\[image\\ [0-9]+\\]" green default diff --git a/global/.newsboat/urls b/global/.newsboat/urls new file mode 100644 index 0000000..8b332e5 --- /dev/null +++ b/global/.newsboat/urls @@ -0,0 +1,4 @@ +https://www.opennet.ru/opennews/opennews_all_utf.rss +https://www.linux.org.ru/section-rss.jsp?section=1 +https://xakep.ru/feed/ +https://www.securitylab.ru/_services/export/rss/ diff --git a/global/.zshrc b/global/.zshrc index 41f6364..4614776 100644 --- a/global/.zshrc +++ b/global/.zshrc @@ -18,8 +18,6 @@ plugins=(git python tmux genpass web-search zsh-syntax-highlighting zsh-autosugg fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src -commit_date=$(date +%Y%m%d) - source $ZSH/oh-my-zsh.sh # functions ### ARCHIVE EXTRACTION @@ -121,8 +119,8 @@ alias ehledger='nvim ~/PKM/ledger/2024.journal' ## other alias cclear="reset && tmux clear-history && cd" ## git -alias s_diary="cd ~/PKM/diary/ && git commit -am '$commit_date' && git push origin master" -alias s_ledger="cd ~/PKM/ledger/ && git commit -am '$commit_date' && git push origin master" +alias s_diary="cd ~/PKM/diary/ && git commit -am \"\$(date +%Y%m%d)\" && git push origin master" +alias s_ledger="cd ~/PKM/ledger/ && git commit -am \"\$(date +%Y%m%d)\" && git push origin master" # Preferred editor for local and remote sessions export EDITOR='nvim' diff --git a/macos/.newsboat/config-macos b/macos/.newsboat/config-macos new file mode 100644 index 0000000..41117ba --- /dev/null +++ b/macos/.newsboat/config-macos @@ -0,0 +1,2 @@ +browser "/opt/homebrew/bin/lynx %u" +macro l set browser "/opt/homebrew/bin/librewolf %u"; open-in-browser ; set browser "/opt/homebrew/bin/lynx %u"