switch to starship

This commit is contained in:
Bartek Stalewski 2020-08-09 23:44:31 +02:00
parent ae7b00d65f
commit 625f1ed5b6
4 changed files with 53 additions and 8 deletions

View File

@ -9,7 +9,6 @@
.cups
.local
.cache
.config
.lesshst
.hushlogin
.zcompdump*

44
conf/starship.toml Normal file
View File

@ -0,0 +1,44 @@
add_newline = false
prompt_order = [
"username",
"hostname",
# "kubernetes",
"directory",
"git_branch",
"git_commit",
"git_state",
"git_status",
# "docker_context",
# "terraform",
# "aws",
"cmd_duration",
"line_break",
"battery",
"character",
]
[character]
use_symbol_for_status = true
[git_branch]
symbol = " "
style = ""
[cmd_duration]
prefix = ""
[git_status]
prefix = ""
suffix = ""
untracked = " !"
untracked_count.enabled = true
modified_count.enabled = true
deleted_count.enabled = true
staged = " +"
staged_count.enabled=true
show_sync_count = true
[hostname]
style = ""
[username]
style_user = ""

View File

@ -1,6 +1,6 @@
#!/bin/sh
# cleaning
# cleaning & preparing
rm -rf ~/.bash* ~/.profile
rm -rf ~/.dotfiles
@ -10,7 +10,6 @@ git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles
## vim
# cleaning
rm -rf ~/.vim*
rm -rf ~/.config/nvim
# installing
mkdir -p ~/.config
ln -sf ~/.dotfiles/vim ~/.vim
@ -42,8 +41,10 @@ mkdir -p ~/.zsh/plugins ~/.zsh/themes
# dependiences
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/themes/powerlevel10k
# install
#git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/themes/powerlevel10k
# installing
curl -fsSL https://starship.rs/install.sh | bash
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc
ln -sf ~/.dotfiles/zsh/p10k.zsh ~/.p10k.zsh
ln -sh ~/.dotfiles/conf/starship.toml ~/.config
#ln -sf ~/.dotfiles/zsh/p10k.zsh ~/.p10k.zsh
touch ~/.zshrc.local

View File

@ -9,8 +9,8 @@ alias ll='ls -lh'
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
#source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='git ls-files --cached --others --exclude-standard 2>/dev/null|fd -H'
@ -24,4 +24,5 @@ _fzf_compgen_dir() {
fd -H --type d . "$1"
}
eval "$(starship init zsh)"
[ -e ~/.zshrc.local ] && source ~/.zshrc.local