life embetterment

This commit is contained in:
Daniel Lundin 2019-04-19 17:19:08 +02:00
parent ff57f07a37
commit 8f1ecdbfee
5 changed files with 4 additions and 25 deletions

View file

@ -39,10 +39,6 @@
"command": "bingo",
"rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"]
},
"jsonnet": {
"command": "jsonnet-language-server",
"filetypes": ["jsonnet"]
}
}
}

View file

@ -3,4 +3,5 @@ xsetroot -solid \#99aab0
xmodmap $HOME/.Xmodmap
setxkbmap -option ctrl:nocaps,grp:switch,grp_led:scroll us,se
alacritty -e tmux attach -t0 &
xcalib $HOME/.config/B140QAN02_0.icm
exec $HOME/bin/dwm

3
.zshrc
View file

@ -60,6 +60,7 @@ zplug "plugins/git", from:oh-my-zsh
zplug "plugins/history-substring-search", from:oh-my-zsh
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "arunvelsriram/kube-fzf", use:'kube-fzf.sh'
zplug "thecasualcoder/kube-fzf", as:command, use:"{*pod,*.sh}"
zplug "~/.zsh", from:local
@ -258,7 +259,7 @@ alias ag='ag --pager less'
alias cdiff='colordiff -u'
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
alias hs='history -a; history -n'
alias l='less -nS'
alias l='less -nRS'
alias lower="tr '[:upper:]' '[:lower:]'"
alias pstree="pstree -Auh | less"
alias tail='tail -n $LINES'

BIN
bin/dwm

Binary file not shown.

View file

@ -1,20 +0,0 @@
#!/bin/bash
set -e
name=toolbox-${USER}
image='dlneintr/toolbox:latest'
labels="app=toolbox,owner=${USER},cookie=0xdeadbeef"
existing=$(kubectl get pod -l ${labels} --output='jsonpath={.items..metadata.name}')
if [ "${existing}" == "" ]; then
kubectl run --image=${image} --image-pull-policy=Always --labels=${labels} ${name}
fi
for i in {1..10}; do
ready=$(kubectl get pod --field-selector=status.phase=Running -l ${labels} --output='jsonpath={.items..metadata.name}')
if [ "${ready}" != "" ]; then
exec kubectl exec -it ${ready} /bin/sh
fi
echo "Waiting for pod to be ready"
sleep 1
done

1
bin/ktoolbox Symbolic link
View file

@ -0,0 +1 @@
/home/dln/src/github.com/dln/ktoolbox/ktoolbox