37

What's going on in my shell? // Automate attention

 4 years ago
source link: https://blog.brujordet.no/post/bash/whats-going-on-in-my-shell/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
To help me figure this out, I use a few shell functions. Firstly, I need to know what configuration file that was used.function shell_init_file() { # Returns what would be your initfile if [[ $- == *i* ]]; then echo ~/.bashrc elif [[ -f ~/.bash_profile ]]; then echo ~/.bash_profile elif [[ -f ~/.bash_login ]]; then echo ~/.bash_login elif [[ -f ~/.profile ]]; then echo ~/.profile else echo "Could not find any config files.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK