mirror of
https://github.com/don-philipe/dotfiles.git
synced 2025-11-08 14:47:03 +01:00
Avoid logging space prefixed commands to hist file like qrcode
This commit is contained in:
@@ -39,10 +39,12 @@ startx()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# generate qrcode and display it
|
# generate qrcode and display it
|
||||||
qrcode()
|
func_qrcode()
|
||||||
{
|
{
|
||||||
qrencode "$1" -o - | feh -
|
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()
|
ogg2mp3()
|
||||||
{
|
{
|
||||||
|
|||||||
1
.zshrc
1
.zshrc
@@ -82,6 +82,7 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
|
|
||||||
setopt appendhistory autocd extendedglob
|
setopt appendhistory autocd extendedglob
|
||||||
setopt GLOB_COMPLETE
|
setopt GLOB_COMPLETE
|
||||||
|
setopt HIST_IGNORE_SPACE # ignore command lines when first character is a space
|
||||||
unsetopt beep
|
unsetopt beep
|
||||||
|
|
||||||
### Enter Vim-Mode ###
|
### Enter Vim-Mode ###
|
||||||
|
|||||||
Reference in New Issue
Block a user