Remaniement : bash_profile
This commit is contained in:
parent
17286ba326
commit
84bcc14b67
1 changed files with 8 additions and 10 deletions
|
@ -1,18 +1,16 @@
|
||||||
|
fastfetch &
|
||||||
|
|
||||||
# Source my profile
|
# Source my profile
|
||||||
profile="${HOME}/.profile"
|
sourceif() {
|
||||||
[[ -f $profile ]] && . "$profile"
|
[ -f "$1" ] && . "$1"
|
||||||
unset profile
|
}
|
||||||
|
|
||||||
# Source my bashrc
|
sourceif ~/.profile
|
||||||
bashrc="${HOME}/.bashrc"
|
sourceif ~/.bashrc
|
||||||
[[ -f $bashrc ]] && . "$bashrc"
|
|
||||||
unset bashrc
|
|
||||||
|
|
||||||
# Fastfetch
|
wait
|
||||||
fastfetch
|
|
||||||
|
|
||||||
# Start Sway if on tty1
|
# Start Sway if on tty1
|
||||||
if [ "$(tty)" = /dev/tty1 ]; then
|
if [ "$(tty)" = /dev/tty1 ]; then
|
||||||
exec sway
|
exec sway
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue