diff --git a/.zsh-custom/functions.zsh b/.zsh-custom/functions.zsh index 224e35b..a3fa96b 100644 --- a/.zsh-custom/functions.zsh +++ b/.zsh-custom/functions.zsh @@ -39,10 +39,12 @@ startx() } # generate qrcode and display it -qrcode() +func_qrcode() { qrencode "$1" -o - | feh - } +# Create alias calling the function with space prefix, so that it is not logged in history file. This avoids logging passwords and stuff. +alias qrcode=" func_qrcode" ogg2mp3() { diff --git a/.zshrc b/.zshrc index 67f59db..5754a3b 100644 --- a/.zshrc +++ b/.zshrc @@ -82,6 +82,7 @@ source $ZSH/oh-my-zsh.sh setopt appendhistory autocd extendedglob setopt GLOB_COMPLETE +setopt HIST_IGNORE_SPACE # ignore command lines when first character is a space unsetopt beep ### Enter Vim-Mode ###