diff --git a/bashrc b/bashrc index 476c294..85b857e 100644 --- a/bashrc +++ b/bashrc @@ -8,11 +8,17 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return +alias exa='exa --tree' +alias flush='cd; clear; motd' +alias fortune='fortune-rs' alias hx='helix' -alias imgcat="wezterm imgcat --height 50%" +alias imgcat='wezterm imgcat --height 50%' alias ls='ls --color=auto' -alias lsd="lsd -l" -alias motd="rust-motd" +alias lsd='lsd -l' +alias motd='rust-motd' +alias onefetch='onefetch --no-title --no-art --no-color-palette' +alias rmux='remux' +alias sl='sl -e' export EDITOR=helix @@ -24,8 +30,20 @@ eval "$(thefuck --alias)" source /usr/lib/goto/goto.sh source /usr/lib/codecat/codecat.sh -export PS1="$(starship prompt)" +if [[ $TERM == 'linux' ]]; then + if [[ $SHLVL -le 1 ]]; then + echo -e "\nWelcome back, $(whoami)!\n" + fi + return +fi + +#export PS1="$(starship prompt)" if [[ $SHLVL -le 3 ]]; then motd fi +if shopt -q login_shell; then + bash + exit +fi +