From ae821b76599ab4d488db7e11065ce839a1e6763a Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 1 Nov 2022 00:28:21 +0100 Subject: [PATCH] various --- gitconfig | 1 + zshrc | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gitconfig b/gitconfig index 12727f0..56bfa1a 100644 --- a/gitconfig +++ b/gitconfig @@ -13,6 +13,7 @@ [alias] lod = log --all --decorate --oneline --graph + pushall = !git remote | xargs -L1 git push [color] ui = auto [init] diff --git a/zshrc b/zshrc index 36d639b..c23e369 100644 --- a/zshrc +++ b/zshrc @@ -13,6 +13,7 @@ export SYSTEMD_EDITOR=vim export LESS=-R export PATH=$PATH:~/bin:~/.local/bin +alias sudo='sudo ' alias clear-orphans='sudo pacman -Rns $(pacman -Qqdt)' alias mount-chroot='sudo mount /mnt/tmpfs; sudo mkdir /mnt/tmpfs/chroot' alias open='xdg-open' @@ -28,8 +29,7 @@ alias poweroff='sudo poweroff' alias reboot='sudo reboot' alias n='ninja' alias m='make -j$(nproc)' -alias cmake='cmake -G Ninja' -alias sysupgrade='sudo pacman -Syu; auracle sync' +alias sysupgrade='sudo pacman -Syu; auracle outdated' alias v='vim' alias ls='ls --color=auto' @@ -42,3 +42,14 @@ if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.z then source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh fi + +if command -v direnv > /dev/null +then + eval "$(direnv hook zsh)" +fi + +export HISTSIZE=1000000 +export SAVEHIST=$HISTSIZE + +# do not include other filesystems, otherwise startup takes forever in the bad case +zstyle ':grml:chpwd:dirstack' exclude "/mnt(|/*)"