1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

feat(zsh,fish): implemented starship prompt

This commit is contained in:
Ryan Kes 2020-12-06 10:50:25 +01:00
parent 08b87963d5
commit 9e8355833d
3 changed files with 12 additions and 9 deletions

View File

@ -145,7 +145,7 @@ A repository of my personal configuration files.
* Fish
*** Theme
- [[https://github.com/matchai/spacefish][spacefish]]
- [[https://starship.rs/][starship]]
*** Package Manager
- [[https://github.com/oh-my-fish/oh-my-fish][oh-my-fish]]
*** Packages
@ -201,7 +201,7 @@ A repository of my personal configuration files.
* Zsh
** Theme
- [[https://github.com/denysdovhan/spaceship-prompt][spaceship zsh]]
- [[https://starship.rs/][starship]]
** Plugin Manager
- [[https://github.com/zplug/zplug][zplug]]
** Plugins

View File

@ -42,17 +42,17 @@ set GPG_TTY (tty)
# Set default browser
if [ -e "/usr/bin/brave" ]
set -g BROWSER "brave"
set -xg BROWSER "brave"
else
if [ -e "/usr/bin/firefox" ]
set -g BROWSER "firefox"
set -xg BROWSER "firefox"
else if [ -e "/usr/bin/iceweasel" ]
set -g BROWSER "iceweasel"
set -xg BROWSER "iceweasel"
end
end
# Set default terminal
set -g TERMINAL "alacritty"
set -xg TERMINAL "st"
# pkg editor
set -xg VISUAL "nvim"
@ -336,3 +336,6 @@ if type rg &> /dev/null
export FZF_DEFAULT_COMMAND='rg --files'
export FZF_DEFAULT_OPTS='-m --height 50% --border'
end
# Enable starfish prompt
starship init fish | source

View File

@ -10,9 +10,6 @@ if [[ ! -d ~/.zplug ]]; then
fi
source ~/.zplug/init.zsh
# Spaceship theme
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
# Oh my zsh lugins
# sudo must start after vi-mode for it to work properly
zplug "plugins/archlinux", from:oh-my-zsh
@ -108,4 +105,7 @@ gpg-connect-agent updatestartuptty /bye >/dev/null
# Needed for broot
source /home/alrayyes/.config/broot/launcher/bash/br
# Enable starfish prompt
eval "$(starship init zsh)"
neofetch