[bin] Refine the letterup shortcut and add tmuxinator env
This commit is contained in:
parent
c0a5aea384
commit
eda4008f01
2 changed files with 20 additions and 1 deletions
11
dot_tmuxinator/letter.yml
Normal file
11
dot_tmuxinator/letter.yml
Normal 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
|
|
@ -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…
Reference in a new issue