irongit

Hygo AI custom shell.

no more loop and can unset things

huncholanehuncholaneauthored
parent e7108edcommit a0bb0fa27aa15625d1204d421016523091599c60Browse files

2 files changed, +7 -7

+0-6setup.sh
@@ -22,9 +22,3 @@ fi
2222 if [ -n "$BASH_VERSION" ]; then
2323 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\] '
2424 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() {
3232 alias glog="git log --oneline"
3333 alias gp="git push"
3434 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