From 4be4debe540bede613f222a8d9dcc8d79b5e180d Mon Sep 17 00:00:00 2001 From: Xian Wang Date: Tue, 16 Feb 2021 19:23:56 -0800 Subject: stfu and okular detach funcs --- omz/custom/func.zsh | 10 +++++++--- zshrc | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/omz/custom/func.zsh b/omz/custom/func.zsh index 7735829..1005adc 100644 --- a/omz/custom/func.zsh +++ b/omz/custom/func.zsh @@ -1,4 +1,8 @@ -function rh { - rm ~/.zsh_history - exec zsh +rh() { + rm ~/.zsh_history + exec zsh +} + +bz() { + setsid "$@" &> /dev/null < /dev/null } diff --git a/zshrc b/zshrc index aff2356..0482b9e 100644 --- a/zshrc +++ b/zshrc @@ -109,3 +109,4 @@ gpg-connect-agent "scd serialno" "learn --force" /bye > /dev/null # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +alias okular="setsid okular" -- cgit v1.2.3