From 84bcc14b67445896b9f1bef091bb9d2b4bab3502 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Thu, 19 Oct 2023 19:27:01 +0200 Subject: [PATCH] Remaniement : bash_profile --- home/bash_profile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/home/bash_profile b/home/bash_profile index 008a398..4ea0cfb 100644 --- a/home/bash_profile +++ b/home/bash_profile @@ -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 -