From 00849e0fcfc95591951519989cec5e5736e30078 Mon Sep 17 00:00:00 2001 From: Michel Date: Wed, 4 Dec 2024 16:45:27 +0100 Subject: [PATCH] feat: Welcome message --- .vimrc | 1 + .zshrc | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.vimrc b/.vimrc index ba316c9..9df4d8e 100644 --- a/.vimrc +++ b/.vimrc @@ -13,6 +13,7 @@ set relativenumber set scrolloff=2 set shiftwidth=2 set smartcase +set undofile set nowrap set nowrapscan diff --git a/.zshrc b/.zshrc index 98f6b58..8220be2 100644 --- a/.zshrc +++ b/.zshrc @@ -535,3 +535,26 @@ compdef locate=glocate # Hide "parameters" (i.e. environment variables) when looking for a "command" zstyle ':completion:*:-command-:*' tag-order '!parameters' + + +### +### Welcome Message +### + +grc --colour=on df -h | grep -v 'tmpfs\|none' +echo + +if [[ -e .welcome ]]; then + cat .welcome +elif [[ -e $HOME/.welcome ]]; then + cat $HOME/.welcome +fi + +setopt nullglob +if (( ${#$(echo ~/QubesIncoming/*(F))} )); then + rmdir --ignore-fail-on-non-empty ~/QubesIncoming/* + find ~/QubesIncoming ! -type d -printf "%5kk %p\n" | + sort -k2,9 | + sed -e "s:$HOME:~:" +fi +setopt nonullglob