1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-12 05:40:17 +00:00

p10k changes

This commit is contained in:
Luna 2020-12-29 23:44:57 +01:00
parent a98ce33497
commit dbc984ddf8
No known key found for this signature in database
GPG key ID: DE9E9D23CD19A149
5 changed files with 1557 additions and 11 deletions

1539
.p10k.zsh Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,11 @@
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs) # # POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then # if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir vcs) # POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir vcs)
else # else
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir vcs) # POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir vcs)
fi # fi
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time) # # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv background_jobs disk_usage) # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv background_jobs disk_usage)
POWERLEVEL9K_MODE='nerdfont-complete' # POWERLEVEL9K_MODE='nerdfont-complete'
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

4
.zshrc
View file

@ -1,3 +1,7 @@
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export TERM="xterm-256color" export TERM="xterm-256color"
export OTHER=$HOME/.zsh export OTHER=$HOME/.zsh
export ZSH=$HOME/.oh-my-zsh export ZSH=$HOME/.oh-my-zsh

View file

@ -11,6 +11,7 @@ else
if [ $DISTRIB_ID == "ManjaroLinux" ]; then if [ $DISTRIB_ID == "ManjaroLinux" ]; then
sudo pacman -S ttf-fira-code sudo pacman -S ttf-fira-code
yay -S vscodium-bin yay -S vscodium-bin
sudo ln -s /usr/bin/vscode /usr/bin/code
code --install-extension akamud.vscode-theme-onedark code --install-extension akamud.vscode-theme-onedark
code --install-extension vscode-icons-team.vscode-icons code --install-extension vscode-icons-team.vscode-icons
fi fi

View file

@ -4,8 +4,8 @@ cp .zshrc $HOME
if [ ! -d "${HOME}/.oh-my-zsh" ]; then if [ ! -d "${HOME}/.oh-my-zsh" ]; then
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi fi
if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel9k" ]; then if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel10k" ]; then
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel9k git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
fi fi
if [ -d "${HOME}/.zsh" ]; then if [ -d "${HOME}/.zsh" ]; then
rm -rf $HOME/.zsh rm -rf $HOME/.zsh