Fix pdf helper functions

master
Jacopo De Simoi 9 months ago
parent 0fc45c7377
commit 1bab3cc931
  1. 26
      zshrc.org

@ -279,19 +279,23 @@ BIG FAT WARNING: this needs to specify an actual file as a destination
#+end_src
*** paper-books helpers :daily:
#+begin_src sh
function o-books ()
function o--generic ()
{
(cd ~/work/books; okular "$(find | sed -e "s+^./++" | fzf)")
(cd $1; eca "$(find | sed -e "s+^./++" | fzf)")
}
#+end_src
Should we rather use aliases? yes please
#+begin_src sh
function o-books () {
(o--generic ~/work/books)
}
function o-papers ()
{
(cd ~/work/papers; okular "$(find | sed -e "s+^./++" | fzf)")
function o-papers () {
(o--generic ~/work/papers)
}
function o-offprints ()
{
(cd ~/work/offprints; okular "$(find | sed -e "s+^./++" | fzf)")
function o-offprints () {
(o--generic ~/work/offprints)
}
#+end_src
@ -659,7 +663,11 @@ technique
bindkey "^g" transpose-chars
bindkey "^[g" transpose-words
#+end_src
*** Connection warning :daily:
#+begin_src sh
ip a | grep nordlynx >>/dev/null && echo → Connected to $fg_bold[magenta]NordVPN$reset_color
true
#+end_src
**** TODO Rearrange this bit
:PROPERTIES:
:CREATED: [2021-05-01 Sat 13:35]

Loading…
Cancel
Save