From 77914cb90acee0255fe5fd417c25bfe5279ca297 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 23 Jan 2020 13:08:08 +0100 Subject: [PATCH] bash thingies --- bash/.bashrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index e48dd8b..b20dec9 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -6,11 +6,14 @@ shopt -s dirspell ##shopt -s autocd #Like zsh PROMPT_COMMAND='history -a' - source /usr/share/bash-completion/completions/pass +set -o vi + +source /usr/share/bash-completion/completions/pass alias dvorak='setxkbmap dvorak; setxkbmap -option compose:ralt && xmodmap .Xmodmap' #dvorak alias qwertz='setxkbmap ch,fr' +alias mousespeed="sudo xinput --set-prop 'USB Optical Mouse' 'libinput Accel Speed' 1" #For autocompletions @@ -54,13 +57,14 @@ esac source ~/.bash_ps1 -alias change_yubikey='pkill gpg-agent ssh-agent pinentry ; eval $(gpg-agent --daemon --enable-ssh-support) ; gpg-connect-agent updatestartuptty /bye' ############### #### ALIAS #### ############### # {{{ +alias nshttp='NSH_HTTP=http NSH_PORT=8888 nsh localhost' alias kl='kubectl' +alias change_yubikey='pkill gpg-agent ssh-agent pinentry ; eval $(gpg-agent --daemon --enable-ssh-support) ; gpg-connect-agent updatestartuptty /bye' alias dockerdns=' docker run -d --hostname dns.mageddo --restart=unless-stopped -p 5380:5380 -v /var/run/docker.sock:/var/run/docker.sock -v /etc/resolv.conf:/etc/resolv.conf -d defreitas/dns-proxy-server' alias flake='docker run --rm -v $(pwd):/data -it gitlab.infomaniak.ch:4567/production-purple/ci/flake8/master:latest flake8 --ignore=E266,E303,E501,W391,E722,W503,F403,F405 --max-line-length=110 /data' alias dockre='docker'