switch to starship
This commit is contained in:
parent
ae7b00d65f
commit
625f1ed5b6
@ -9,7 +9,6 @@
|
|||||||
.cups
|
.cups
|
||||||
.local
|
.local
|
||||||
.cache
|
.cache
|
||||||
.config
|
|
||||||
.lesshst
|
.lesshst
|
||||||
.hushlogin
|
.hushlogin
|
||||||
.zcompdump*
|
.zcompdump*
|
||||||
|
44
conf/starship.toml
Normal file
44
conf/starship.toml
Normal 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 = ""
|
11
install.sh
11
install.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# cleaning
|
# cleaning & preparing
|
||||||
rm -rf ~/.bash* ~/.profile
|
rm -rf ~/.bash* ~/.profile
|
||||||
rm -rf ~/.dotfiles
|
rm -rf ~/.dotfiles
|
||||||
|
|
||||||
@ -10,7 +10,6 @@ git clone https://github.com/ftpd/dotfiles.git ~/.dotfiles
|
|||||||
## vim
|
## vim
|
||||||
# cleaning
|
# cleaning
|
||||||
rm -rf ~/.vim*
|
rm -rf ~/.vim*
|
||||||
rm -rf ~/.config/nvim
|
|
||||||
# installing
|
# installing
|
||||||
mkdir -p ~/.config
|
mkdir -p ~/.config
|
||||||
ln -sf ~/.dotfiles/vim ~/.vim
|
ln -sf ~/.dotfiles/vim ~/.vim
|
||||||
@ -42,8 +41,10 @@ mkdir -p ~/.zsh/plugins ~/.zsh/themes
|
|||||||
# dependiences
|
# dependiences
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions
|
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 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
|
#git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.zsh/themes/powerlevel10k
|
||||||
# install
|
# installing
|
||||||
|
curl -fsSL https://starship.rs/install.sh | bash
|
||||||
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc
|
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
|
touch ~/.zshrc.local
|
||||||
|
@ -9,8 +9,8 @@ alias ll='ls -lh'
|
|||||||
|
|
||||||
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source ~/.zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
|
#source ~/.zsh/themes/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
#[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
export FZF_DEFAULT_COMMAND='git ls-files --cached --others --exclude-standard 2>/dev/null|fd -H'
|
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"
|
fd -H --type d . "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eval "$(starship init zsh)"
|
||||||
[ -e ~/.zshrc.local ] && source ~/.zshrc.local
|
[ -e ~/.zshrc.local ] && source ~/.zshrc.local
|
||||||
|
Loading…
Reference in New Issue
Block a user