Compare commits

...

3 commits

Author SHA1 Message Date
Hippolyte Chauvin
ee174a4252 Ajout : fonction addpath dans profile, ajout d'un path 2023-09-12 22:58:57 +02:00
Hippolyte Chauvin
22aff9b2eb Ajout : profile 2023-09-12 22:58:57 +02:00
Hippolyte Chauvin
29958605c2 Ajout : bash_profile 2023-09-12 22:58:57 +02:00
2 changed files with 28 additions and 0 deletions

18
home/bash_profile Normal file
View file

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

10
home/profile Normal file
View file

@ -0,0 +1,10 @@
# Add local bin to PATH
addpath() {
if [ -d "$1" ]; then
PATH="${1}:${PATH}"
fi
}
addpath ~/.local/bin
addpath ~/.local/share/qemu/bin