1
0
Fork 0
forked from ahurac/dotfiles

Remaniement : bash_profile

This commit is contained in:
Hippolyte Chauvin 2023-10-19 19:27:01 +02:00
parent 17286ba326
commit 84bcc14b67

View file

@ -1,18 +1,16 @@
fastfetch &
# Source my profile
profile="${HOME}/.profile"
[[ -f $profile ]] && . "$profile"
unset profile
sourceif() {
[ -f "$1" ] && . "$1"
}
# Source my bashrc
bashrc="${HOME}/.bashrc"
[[ -f $bashrc ]] && . "$bashrc"
unset bashrc
sourceif ~/.profile
sourceif ~/.bashrc
# Fastfetch
fastfetch
wait
# Start Sway if on tty1
if [ "$(tty)" = /dev/tty1 ]; then
exec sway
fi