mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(console): account for dumb terminals
This commit is contained in:
parent
460e6a8d32
commit
ae66dcacc1
3 changed files with 8 additions and 4 deletions
2
.bashrc
2
.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
|
||||
|
|
|
|||
|
|
@ -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]]
|
||||
|
|
|
|||
|
|
@ -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=.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue