Skip to content

Commit

Permalink
add login info for bash (similar to fish)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjenni committed Jan 22, 2024
1 parent b43febc commit 6e22936
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bash/bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,16 @@ fi
if have zoxide; then
eval "$(zoxide init bash)"
fi

case $- in
*i*) # interactive
if `shopt -q login_shell`; then
if have neofetch; then
neofetch
else
echo " $(uname -a)"
uptime
fi
fi
;;
esac

0 comments on commit 6e22936

Please sign in to comment.