Hygo AI custom shell.
no more loop and can unset things
2 files changed, +7 -7
+0-6setup.sh
| @@ -22,9 +22,3 @@ fi | ||
| 22 | 22 | if [ -n "$BASH_VERSION" ]; then |
| 23 | 23 | PS1='\[\e[38;5;214m\]\u@\h \w$(git_branch=$(get_git_branch); if [ -n "$git_branch" ]; then echo " \[\e[37m\]($git_branch\[\e[0m\])"; fi)\n\$\[\e[0m\] ' |
| 24 | 24 | fi |
| 25 | - | |
| 26 | -# Add source ./source.sh if it exists | |
| 27 | -if [ -f ./source.sh ]; then | |
| 28 | - echo -e "\e[32mFound a source.sh in the current directory. Sourcing it.\e[0m" | |
| 29 | - source ./source.sh | |
| 30 | -fi |
+7-1.bashrc → source.sh
| @@ -32,4 +32,10 @@ function gpom() { | ||
| 32 | 32 | alias glog="git log --oneline" |
| 33 | 33 | alias gp="git push" |
| 34 | 34 | alias gc="git checkout" |
| 35 | -# HELP git | |
| 35 | +# HELP git | |
| 36 | + | |
| 37 | +# Add source ./source.sh if it exists and this is not ~/.hygo/source.sh | |
| 38 | +if [ -f "$(pwd)/source.sh" ] && [ "$(pwd)" != "$HOME/.hygo" ]; then | |
| 39 | + echo -e "\e[32mFound a source.sh in the current directory. Sourcing it.\e[0m" | |
| 40 | + source "$(pwd)/source.sh" | |
| 41 | +fi |