@ -55,10 +55,13 @@ defined in the previous section.
now, the em-world is an alias that only exists in the version of
now, the em-world is an alias that only exists in the version of
zshrc that I use for root. How do I want to proceed?
zshrc that I use for root. How do I want to proceed?
*** TODO replace pomodoro aliases with actual scripts
*** TODO have a look at this idea:
*** TODO have a look at this idea:
Instead of defining a lot of functions in your `.zshrc', all of which you may not use, it is often better to use the autoload builtin. The idea is, you create a directory where function definitions are stored, declare the names in your `.zshrc', and tell the shell where to look for them. Whenever you reference a function, the shell will automatically load it into memory.
Instead of defining a lot of functions in your `.zshrc', all of
which you may not use, it is often better to use the autoload
builtin. The idea is, you create a directory where function
definitions are stored, declare the names in your `.zshrc', and
tell the shell where to look for them. Whenever you reference a
function, the shell will automatically load it into memory.
% mkdir /tmp/funs
% mkdir /tmp/funs
% cat >/tmp/funs/yp
% cat >/tmp/funs/yp
@ -544,11 +547,22 @@ This needs to be diff'd among the versions
#+end_src
#+end_src
*** dnd management :daily:
*** dnd management :daily:
#+begin_src sh
#+begin_src sh
alias with-dnd=~/scripts/dnd-wrapper.py
alias with-dnd="~/scripts/dnd-wrapper.py "
#+end_src
#+end_src
This silences the fan:
This silences the fan:
#+qbegin_src sh
#+begin_src sh
alias with-power-save="powerprofilesctl launch -p power-saver -r 'quiet operations'"
alias with-power-save="powerprofilesctl launch -p power-saver -r 'quiet operations' "
#+end_src
*** with-mpc :daily:
#+begin_src sh
function with-mpc-fade () {
~/scripts/mpc-fade
$@
~/scripts/mpc-fade
}
# Define an alias with a space at the end so that we can chain with