feat: Welcome message

This commit is contained in:
Michel 2024-12-04 16:45:27 +01:00
parent 624eda03be
commit 00849e0fcf
2 changed files with 24 additions and 0 deletions

1
.vimrc
View File

@ -13,6 +13,7 @@ set relativenumber
set scrolloff=2 set scrolloff=2
set shiftwidth=2 set shiftwidth=2
set smartcase set smartcase
set undofile
set nowrap set nowrap
set nowrapscan set nowrapscan

23
.zshrc
View File

@ -535,3 +535,26 @@ compdef locate=glocate
# Hide "parameters" (i.e. environment variables) when looking for a "command" # Hide "parameters" (i.e. environment variables) when looking for a "command"
zstyle ':completion:*:-command-:*' tag-order '!parameters' 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