custom starship config
This commit is contained in:
@@ -78,5 +78,4 @@ export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
|
||||
38
zsh/config.d/starship.zsh
Normal file
38
zsh/config.d/starship.zsh
Normal file
@@ -0,0 +1,38 @@
|
||||
# find out which distribution we are running on
|
||||
LFILE="/etc/*-release"
|
||||
MFILE="/System/Library/CoreServices/SystemVersion.plist"
|
||||
if [[ -f $LFILE ]]; then
|
||||
_distro=$(awk '/^ID=/' /etc/*-release | awk -F'=' '{ print tolower($2) }')
|
||||
elif [[ -f $MFILE ]]; then
|
||||
_distro="macos"
|
||||
fi
|
||||
|
||||
# set an icon based on the distro
|
||||
# make sure your font is compatible with https://github.com/lukas-w/font-logos
|
||||
case $_distro in
|
||||
*kali*) ICON="ﴣ";;
|
||||
*arch*) ICON="";;
|
||||
*debian*) ICON="";;
|
||||
*raspbian*) ICON="";;
|
||||
*ubuntu*) ICON="";;
|
||||
*elementary*) ICON="";;
|
||||
*fedora*) ICON="";;
|
||||
*coreos*) ICON="";;
|
||||
*gentoo*) ICON="";;
|
||||
*mageia*) ICON="";;
|
||||
*centos*) ICON="";;
|
||||
*opensuse*|*tumbleweed*) ICON="";;
|
||||
*sabayon*) ICON="";;
|
||||
*slackware*) ICON="";;
|
||||
*linuxmint*) ICON="";;
|
||||
*alpine*) ICON="";;
|
||||
*aosc*) ICON="";;
|
||||
*nixos*) ICON="";;
|
||||
*devuan*) ICON="";;
|
||||
*manjaro*) ICON="";;
|
||||
*rhel*) ICON="";;
|
||||
*macos*) ICON="";;
|
||||
*) ICON="";;
|
||||
esac
|
||||
|
||||
export STARSHIP_DISTRO="$ICON"
|
||||
Reference in New Issue
Block a user