ChrisTitusTech / mybash

My Bash profile - Highly customized Starship Theme - Just imagine Powerlevel10k and Nord Theme had a baby.
312 stars 162 forks source link

Add a few improvements #66

Closed Subarctic2796 closed 6 days ago

Subarctic2796 commented 1 week ago

Hi Chris love your videos.

README changes

I added install instructions to the README.

setup.sh changes

I have started working on making the setup.sh script follow bash standards more. (such as adding local varname instead of varname, and using arrays instead of splitting. Everything that I did is documented in the comments that I added to the script. I am just following stuff from https://github.com/bahamas10/bash-style-guide

.bashrc changes

I also added a few of the XDG folders to the exports in the .bashrc file, I have also exported the LINUXTOOLBOXDIR as an environment variable as that is going to be used in the linutil and I assume other scripts you make in the future, so this will just make it easier to do stuff. I also added caching for starship and zoxide (basically I am just putting the init scripts into a file and sourcing it) I have found that doing this speeds up the shells startup time.

ChrisTitusTech commented 6 days ago

Love the additions, modified it further to switch from bash to sh for speed and POSIX compliance. Thanks @Subarctic2796