updated bashrc
This commit is contained in:
parent
6cad44fdd0
commit
0658a6ae9e
1 changed files with 22 additions and 4 deletions
26
bashrc
26
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue