From b6fd5446c63e83b2d6418cd0ceab262d00aad030 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Tue, 16 Feb 2021 13:08:56 +0100 Subject: [PATCH] config/shell: some alias adjustments --- .config/shell/functions | 1 + .config/shell/git | 2 +- .config/zsh/.zshrc | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/shell/functions b/.config/shell/functions index 0b3ac85..5c191ee 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -146,6 +146,7 @@ alias mdox="xclip -o -selection clipboard | mdo | xclip -filter" alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index' alias sc='sudo systemctl' +scs() { sudo systemctl status "*$1*" } alias scu='systemctl --user' alias scrw='sudo systemctl restart display-manager' diff --git a/.config/shell/git b/.config/shell/git index 6c5f4c8..77146bb 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -212,4 +212,4 @@ gitcommits() { # }}} # Testing -gittestcommit() { touch file$((++i)) && git add . && git commit -m "Create file$i"; } +gittestcommit() { touch file$((++i)) && git add 'file*' && git commit -m "Create file$i"; } diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index bcb3431..537785e 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -152,7 +152,8 @@ setopt correct # don't save duplicates in command history setopt histignoredups -setopt extended_glob +setopt EXTENDED_GLOB +unsetopt CASE_GLOB setopt pipefail @@ -183,4 +184,4 @@ test -f $XDG_CONFIG_HOME/broot/launcher/bash/br && source $XDG_CONFIG_HOME/broot which direnv >/dev/null && eval "$(direnv hook zsh)" -return 0 +true