Hi,
I would like to autostart my custom .bashrc file (located in /home/dietpi folder).
How I can to do ?
@MichaIng can you have a look pls.
thanks !
My dietpi o.s. is a server version. So, I don’t have a desktop GUI, but I work by a shell (and webserver installed). I need to autostart my custom .bashrc file that is this (I have only alias command for manage my system):
# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "$(dircolors)"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
# command
alias update='echo 123456 | sudo -S apt-get update && sudo apt-get upgrade'
alias clean='echo 123456 | sudo -S apt-get autoclean && sudo apt-get clean && sudo apt-get autoremove'
alias down='echo 123456 | sudo -S shutdown -h now'
alias print_A3='lp -o media=A3 -d MFCJ6520DW -o landscape -o ColorModel=Color *.pdf'
alias print_A4='lp -o media=A4 -d MFCJ470DW -o portrait -o ColorModel=Color *.pdf'
alias suspend='systemctl suspend'
alias space1='du -hs */ | sort -hr | head -15'
So, is there another solution ?
I think you just can add this to the existing ~/.bashrc
for root user (or into the .bashrc
for any other user, inside /home/{username}/
), at least I did it this way.
And whenever you start a terminal, it’s getting loaded.
Great !
Work !
I moved my .bashrc from /home/dietpi to /root
Thank’s!