summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc3
-rw-r--r--.gitconfig5
-rw-r--r--.vimrc4
-rwxr-xr-xbin/gauth3
-rwxr-xr-xbin/idot4
5 files changed, 13 insertions, 6 deletions
diff --git a/.bashrc b/.bashrc
index 650f32e..9918eb1 100644
--- a/.bashrc
+++ b/.bashrc
@@ -76,6 +76,7 @@ alias rvi='sudo vim'
alias ww='(cd ~/Wiki && vi home_page.md)'
alias s='(cd ~/Wiki && vi scratch.md)'
alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME'
+alias pv='qlmanage -p'
#alias uc='systemctl --user'
#alias wpa='sudo wpa_gui -i wlan0'
@@ -97,7 +98,7 @@ alias dy='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ./yaegi'
alias wai='~/go/src/github.co/traefik/whoami/whoami'
# yaegi debug
-export YAEGI_DOT_CMD="$DOT"
+export YAEGI_DOT_CMD="dotty -"
export YAEGI_UNSAFE=1
export YAEGI_UNRESTRICTED=1
export YAEGI_SYSCALL=1
diff --git a/.gitconfig b/.gitconfig
index 4deaf03..5de0cf3 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -22,3 +22,8 @@
autoSetupRemote = true
[core]
excludesfile = /Users/marc/.gitignore_global
+[filter "lfs"]
+ smudge = git-lfs smudge -- %f
+ process = git-lfs filter-process
+ required = true
+ clean = git-lfs clean -- %f
diff --git a/.vimrc b/.vimrc
index c6f51cb..fb8af89 100644
--- a/.vimrc
+++ b/.vimrc
@@ -20,6 +20,10 @@ set backup
set autochdir
+" ignore case when searching, except mixing upper and lower
+set ignorecase
+set smartcase
+
" No bell
set belloff=all
diff --git a/bin/gauth b/bin/gauth
index 0c11531..e2291dd 100755
--- a/bin/gauth
+++ b/bin/gauth
@@ -2,8 +2,9 @@
# Use backup from andOTP
#cat ~/otp_accounts.json |
+[ "$1" ] && post="grep -i $1" || post=cat
gpg -qd ~/.otp.gpg |
jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' |
while read -r l s i; do
printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")"
-done
+done | $post
diff --git a/bin/idot b/bin/idot
deleted file mode 100755
index 44387e8..0000000
--- a/bin/idot
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-# dot -Gsize=9 -Nshape=box -Nstyle=rounded -Tsvg | convert -- - sixel:/dev/tty
-# dot -Gsize=9 -Nfontname=Helvetica -Tsvg | convert -- - sixel:/-dev/tty
-dot -Gsize=9 -Nfontname=Arial -Tpng | icat - /dev/tty