dotfiles

My dotfiles, nothing really interesting to see ...
git clone https://git.onna.be/dotfiles.git
Log | Files | Refs | README

commit adc9da6cbe05c082862bd93bbf20740d7538705c
parent 0ffe136f357a4e7bd8d04c480f4fca9d42d2b44b
Author: Paco Esteban <paco@onna.be>
Date:   Sun,  7 Oct 2018 14:55:59 +0200

lots of changes ... I should commit more often :-(

Diffstat:
bin/bin/check_cert.sh | 2+-
i3/.config/i3/config | 4++--
nvim/.config/nvim/UltiSnips/sh.snippets | 2+-
zsh/.zsh/aliases.zsh | 29+++++++++++++++--------------
zsh/.zshenv | 2+-
zsh/.zshrc | 9++-------
6 files changed, 22 insertions(+), 26 deletions(-)

diff --git a/bin/bin/check_cert.sh b/bin/bin/check_cert.sh @@ -13,7 +13,7 @@ if [[ "$2" == "sni" ]]; then fi echo |\ - openssl s_client \ + openssl s_client -showcerts \ $WITH_SNI \ -connect "$SERVER" 2>/dev/null |\ openssl x509 -text diff --git a/i3/.config/i3/config b/i3/.config/i3/config @@ -8,8 +8,8 @@ workspace_auto_back_and_forth yes # terminal setting set $term --no-startup-id urxvtc # system restart/shutdown -set $shutdown doas shutdown -h -p now -set $reboot doas reboot +set $shutdown doas /sbin/shutdown -h -p now +set $reboot doas /sbin/reboot # ##For music (cmus) set $music cmus diff --git a/nvim/.config/nvim/UltiSnips/sh.snippets b/nvim/.config/nvim/UltiSnips/sh.snippets @@ -103,7 +103,7 @@ snippet cleanup "bash exit trap" cleanup() { ${0:#cleanup logic ...} } -trap cleanup EXIT +trap cleanup EXIT INT QUIT TERM endsnippet # vim:ft=snippets: diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh @@ -1,5 +1,14 @@ MYOS=$(uname) if [[ "$MYOS" == "Linux" ]]; then + alias d='docker' + alias dps='docker ps -a' + alias dim='docker images' + alias dex='docker exec -ti' + alias drun='docker run --rm' + alias dpull='docker pull' + alias dpush='docker push' + alias dclean='docker system prune -af' + alias ddf='docker system df' alias ls='ls -F --color' alias cal='cal -3m' alias open="xdg-open" @@ -10,6 +19,7 @@ if [[ "$MYOS" == "OpenBSD" ]]; then alias open="xdg-open" alias cal='cal -m' alias ls='ls -F' + alias gpg='gpg2' CLIP_COMMAND="xclip -f -selection clipboard" fi if [[ "$MYOS" == "Darwin" ]]; then @@ -44,15 +54,6 @@ alias gcil='gcloud compute instances list' alias gcssh='gcloud compute ssh' alias gcscp='gcloud compute scp' alias vim='nvim' -alias d='docker' -alias dps='docker ps -a' -alias dim='docker images' -alias dex='docker exec -ti' -alias drun='docker run --rm' -alias dpull='docker pull' -alias dpush='docker push' -alias dclean='docker system prune -af' -alias ddf='docker system df' alias info='info --vi-keys' # GNU info act like man command alias figletfonts='ls -1 `figlet -I2` | grep "\.flf$" | cut -f 1 -d "." | sort -u' # list figlet fonts alias pdu='ncdu --color dark -rr' @@ -95,17 +96,17 @@ M=/mnt/mirror h=/mnt/home # transmission stuff -alias trls='transmission-remote 10.42.10.55 --authenv -l' +alias trls='transmission-remote pippin.home --authenv -l' function trrm () { - transmission-remote 10.42.10.55 --authenv -t $1 --remove-and-delete + transmission-remote pippin.home --authenv -t $1 --remove-and-delete } function tradd () { - transmission-remote 10.42.10.55 --authenv -a $1 + transmission-remote pippin.home --authenv -a $1 } function trclean() { - for i in $(transmission-remote 10.42.10.55 --authenv -l | awk '$2=="100%" {print $1}') + for i in $(transmission-remote pippin.home --authenv -l | awk '$2=="100%" {print $1}') do - transmission-remote 10.42.10.55 --authenv -t $i --remove-and-delete + transmission-remote pippin.home --authenv -t $i --remove-and-delete done } diff --git a/zsh/.zshenv b/zsh/.zshenv @@ -17,7 +17,7 @@ export PASSWORD_STORE_ENABLE_EXTENSIONS=true export DEFAULT_USER=$USER typeset -U path -path=(/opt/google-cloud-sdk/bin ~/.plenv/bin $path) +path=(~/bin $path /opt/google-cloud-sdk/bin) # for completion colored ... export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:' diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -39,13 +39,8 @@ bindkey -M vicmd V edit-command-line bindkey '^P' up-history bindkey '^N' down-history -# ssh-gent -if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent > "$HOME/.ssh-agent-thing" -fi -if [[ "$SSH_AGENT_PID" == "" ]]; then - eval "$(<~/.ssh-agent-thing)" -fi +# ssh-gent. We use GnuPG agent. +export SSH_AUTH_SOCK=$(/usr/local/bin/gpgconf --list-dirs agent-ssh-socket) [ -f $HOME/.zshenv.local ] && source $HOME/.zshenv.local source $HOME/.zsh/includes.zsh