Browse Source

[bin] Refine the letterup shortcut and add tmuxinator env

main
Sebastian Schulze 1 year ago
parent
commit
eda4008f01
Signed by: bascht GPG Key ID: 5BCB1D3B4D38A35A
  1. 11
      dot_tmuxinator/letter.yml
  2. 10
      dot_zshrc.tmpl

11
dot_tmuxinator/letter.yml

@ -0,0 +1,11 @@
# Graphical word processors can go eat an egg
name: letter-<%= File.basename(Dir.pwd) %>
root: <%= Dir.pwd %>
pre: make pdf
windows:
- editor: em -nw brief.tex
- build: make watch
- preview: zathura brief.pdf

10
dot_zshrc.tmpl

@ -69,7 +69,15 @@ alias -g baml="|bat -l yaml"
kp() { export KUBECONFIG=/dev/shm/kubeconfig && gopass $(gopass ls -f | fzf --query "'${1} kubeconfig" --select-1) > $KUBECONFIG && source <(kubectl completion zsh) }
timestamp() { date +%Y-%m-%d-%H%M%S }
letterup() { take $1 && cp -a ~/Documents/Personal/Brief-Vorlage/2017-LaTeX/* .; }
letterup() {
if [[ ! -a $1 ]]; then
take $1;
cp -a ~/Documents/Personal/Brief-Vorlage/2017-LaTeX/* .;
else
cd $1;
fi;
tmuxinator start letter;
}
# Pretty up FZF
export FZF_DEFAULT_OPTS='

Loading…
Cancel
Save