1
0
Fork 0

[bin] Refine the letterup shortcut and add tmuxinator env

main
Sebastian Schulze 2020-06-18 17:20:44 +02:00
parent c0a5aea384
commit eda4008f01
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
2 changed files with 20 additions and 1 deletions

11
dot_tmuxinator/letter.yml Normal file
View File

@ -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

View File

@ -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='