diff --git a/.bashrc b/.bashrc index 9a619ca..a1bc9d1 100644 --- a/.bashrc +++ b/.bashrc @@ -146,7 +146,7 @@ fi # Anaconda:1 ends here # [[file:Console.org::*Starship][Starship:1]] -if [[ -z "$SIMPLE" ]]; then +if [[ -z "$SIMPLE" && "$TERM" != "dumb" ]]; then eval "$(starship init bash)" fi # Starship:1 ends here diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d5f1652..1071c46 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,5 +1,7 @@ # [[file:../../Console.org::*Fish][Fish:1]] -starship init fish | source +if [ "$TERM" != "dumb" ] + starship init fish | source +end # Fish:1 ends here # [[file:../../Console.org::*Fish][Fish:2]] diff --git a/Console.org b/Console.org index 276ce7e..489e80b 100644 --- a/Console.org +++ b/Console.org @@ -437,7 +437,7 @@ fi #+end_src *** Starship #+begin_src bash -if [[ -z "$SIMPLE" ]]; then +if [[ -z "$SIMPLE" && "$TERM" != "dumb" ]]; then eval "$(starship init bash)" fi #+end_src @@ -454,7 +454,9 @@ fi Launch starship #+begin_src fish -starship init fish | source +if [ "$TERM" != "dumb" ] + starship init fish | source +end #+end_src Enable vi keybindings & aliases. The alias syntax is the same as in bash, so it's just a noweb reference to =.bashrc=.