chore: refactor starship prompt setup
This commit is contained in:
1 parent
fa032ec43e
commit
b4b81baae5
4 files changed
+6
-12
No files matched your search
@@ -1,5 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
# some useful options (man zshoptions)
|
||||
setopt autocd extendedglob nomatch menucomplete
|
||||
setopt interactive_comments
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[ -x "$(command -v lsd)" ] && alias ls="lsd"
|
||||
[ -x "$(command -v bat)" ] && alias cat="bat"
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
HISTSIZE=1000000
|
||||
|
||||
@@ -9,3 +9,5 @@ export HISTFILE="$ZDOTDIR"/.zsh_history
|
||||
export EDITOR="micro"
|
||||
export PAGE="bat"
|
||||
export VISUAL="micro"
|
||||
|
||||
export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml
|
||||
@@ -1,9 +1,3 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
STARSHIP_HOME=$HOME/.config/starship
|
||||
[ ! -d "$STARSHIP_HOME" ] && mkdir -p "$STARSHIP_HOME"
|
||||
[ ! -f "$STARSHIP_HOME/starship.toml" ] && touch "$STARSHIP_HOME/starship.toml"
|
||||
|
||||
export STARSHIP_CONFIG="$STARSHIP_HOME"/starship.toml
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
|
||||
Reference in new issue
Block a user