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)
|
# some useful options (man zshoptions)
|
||||||
setopt autocd extendedglob nomatch menucomplete
|
setopt autocd extendedglob nomatch menucomplete
|
||||||
setopt interactive_comments
|
setopt interactive_comments
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[ -x "$(command -v lsd)" ] && alias ls="lsd"
|
[ -x "$(command -v lsd)" ] && alias ls="lsd"
|
||||||
[ -x "$(command -v bat)" ] && alias cat="bat"
|
[ -x "$(command -v bat)" ] && alias cat="bat"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
HISTSIZE=1000000
|
HISTSIZE=1000000
|
||||||
|
|
||||||
@@ -9,3 +9,5 @@ export HISTFILE="$ZDOTDIR"/.zsh_history
|
|||||||
export EDITOR="micro"
|
export EDITOR="micro"
|
||||||
export PAGE="bat"
|
export PAGE="bat"
|
||||||
export VISUAL="micro"
|
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
|
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
|
||||||
[ ! -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)"
|
|
||||||
Reference in new issue
Block a user