Skip to content

Instantly share code, notes, and snippets.

@angstbear
angstbear / fish_greeting.fish
Last active January 30, 2023 02:48
fortune + cowsay (random animal) + lolcat Fish-Shell prompt greeting
function fish_greeting
if not which fortune > /dev/null ^ /dev/null
switch (uname)
case Darwin
echo Installing fortune and cowsay
brew install fortune
sudo gem install lolcat
case Linux
echo Installing fortune and cowsay
if which apt-get > /dev/null ^ /dev/null
@clarkli86
clarkli86 / sha256sum_recursively.sh
Created December 18, 2014 03:38
sha256sum on all files recursively
find directory -type f -print0 | xargs -0 sha256sum