feat(console): account for dumb terminals

This commit is contained in:
Pavel Korytov 2022-07-09 23:11:37 +03:00
parent 460e6a8d32
commit ae66dcacc1
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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]]

View file

@ -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=.