|
|
|
|
@ -53,7 +53,7 @@ Each environment has slightly different setups, which will be tangled |
|
|
|
|
to different files according to the function `org-tags-to-filenames', |
|
|
|
|
defined in the previous section. |
|
|
|
|
|
|
|
|
|
*** Include :daily:android: |
|
|
|
|
*** Include :daily:android: |
|
|
|
|
First, include a script that sets a number of confidential data (e.g. API keys and such) |
|
|
|
|
#+begin_src sh |
|
|
|
|
source ~/.config/confidential.sh |
|
|
|
|
@ -101,7 +101,7 @@ source ~/scripts/kde-utils.sh |
|
|
|
|
|
|
|
|
|
**** TODO See if we can use zsh expansion instead of sed |
|
|
|
|
|
|
|
|
|
*** Android helpers :daily: |
|
|
|
|
*** Android helpers :daily: |
|
|
|
|
|
|
|
|
|
These are various helpers to drive my current Android phone when connected to the box. |
|
|
|
|
|
|
|
|
|
@ -152,7 +152,7 @@ These are various helpers to drive my current Android phone when connected to th |
|
|
|
|
|
|
|
|
|
**** TODO The last bit is really pi material |
|
|
|
|
|
|
|
|
|
*** Misc helpers :pi:daily:android: |
|
|
|
|
*** Misc helpers :pi:daily:android: |
|
|
|
|
- tmux guard |
|
|
|
|
This function checks if we are in a tmux session before |
|
|
|
|
executing the command; otherwise print an error and bail out |
|
|
|
|
@ -188,7 +188,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
ln $2 $1 |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
*** konsole helpers :daily: |
|
|
|
|
*** konsole helpers :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
function set-terminal-title() { |
|
|
|
|
echo -en "\e]2;$@\a" |
|
|
|
|
@ -212,7 +212,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
|
|
|
|
|
*** emacs helpers :daily:pi: |
|
|
|
|
*** emacs helpers :daily:pi: |
|
|
|
|
#+begin_src sh |
|
|
|
|
SOLARIZED="true" |
|
|
|
|
export EMACS="emacsclient" |
|
|
|
|
@ -258,7 +258,7 @@ BIG FAT WARNING: this needs to specify an actual file as a destination |
|
|
|
|
export EMACS_DEF_ARGUMENTS="" |
|
|
|
|
|
|
|
|
|
#+end_src |
|
|
|
|
*** oh-my-zsh setup :daily:pi:android: |
|
|
|
|
*** oh-my-zsh setup :daily:pi:android: |
|
|
|
|
#+begin_src sh |
|
|
|
|
# Path to your oh-my-zsh configuration. |
|
|
|
|
ZSH=$HOME/.oh-my-zsh |
|
|
|
|
@ -371,7 +371,7 @@ further reference |
|
|
|
|
bindkey -M isearch . self-insert |
|
|
|
|
fi |
|
|
|
|
#+end_src |
|
|
|
|
*** TODO editor env variables :daily: |
|
|
|
|
*** TODO editor env variables :daily: |
|
|
|
|
This needs to be diff'd among the versions |
|
|
|
|
#+begin_src sh |
|
|
|
|
# editor stuff |
|
|
|
|
@ -381,7 +381,7 @@ This needs to be diff'd among the versions |
|
|
|
|
export GIT_EDITOR=$EMACS |
|
|
|
|
export SUDO_EDITOR=$EMACS |
|
|
|
|
#+end_src |
|
|
|
|
*** git helpers :daily: |
|
|
|
|
*** git helper :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
git-create-pi-remote () { |
|
|
|
|
REPO_NAME=$(basename "`pwd`") |
|
|
|
|
@ -402,7 +402,7 @@ This needs to be diff'd among the versions |
|
|
|
|
|
|
|
|
|
**** TODO Create a script to add an arbitrary remote |
|
|
|
|
|
|
|
|
|
*** Aliases :pi:android:daily: |
|
|
|
|
*** Aliases :pi:android:daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
## Aliases |
|
|
|
|
alias emacs="eca" |
|
|
|
|
@ -423,7 +423,7 @@ This needs to be diff'd among the versions |
|
|
|
|
#+begin_src sh |
|
|
|
|
alias hugo="/snap/bin/hugo" |
|
|
|
|
#+end_src |
|
|
|
|
*** Pomodoro helpers :daily:pi:android: |
|
|
|
|
*** Pomodoro helpers :daily:pi:android: |
|
|
|
|
#+begin_src sh |
|
|
|
|
termdown_bin=/home/jacopods/.local/bin/termdown |
|
|
|
|
|
|
|
|
|
@ -479,14 +479,14 @@ This needs to be diff'd among the versions |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
#+end_src |
|
|
|
|
*** Named directories :daily: |
|
|
|
|
*** Named directories :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
hash -d Papers="/home/jacopods/work/Papers" |
|
|
|
|
hash -d Books="/home/jacopods/work/Books" |
|
|
|
|
hash -d kde="/scratch/kde/src" |
|
|
|
|
hash -d kde5="/scratch/kde/src5" |
|
|
|
|
#+end_src |
|
|
|
|
*** Un-tarmak bindings :daily: |
|
|
|
|
*** Un-tarmak bindings :daily: |
|
|
|
|
#+begin_src sh |
|
|
|
|
bindkey "^t" forward-char |
|
|
|
|
bindkey "^[t" forward-word |
|
|
|
|
|