mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-04 18:20:18 +00:00
p10k changes
This commit is contained in:
parent
a98ce33497
commit
dbc984ddf8
5 changed files with 1557 additions and 11 deletions
|
@ -1,9 +1,11 @@
|
|||
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir vcs)
|
||||
else
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir vcs)
|
||||
fi
|
||||
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
|
||||
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv background_jobs disk_usage)
|
||||
POWERLEVEL9K_MODE='nerdfont-complete'
|
||||
# # POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir vcs)
|
||||
# if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir vcs)
|
||||
# else
|
||||
# POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator dir vcs)
|
||||
# fi
|
||||
# # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
|
||||
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv background_jobs disk_usage)
|
||||
# POWERLEVEL9K_MODE='nerdfont-complete'
|
||||
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
|
4
.zshrc
4
.zshrc
|
@ -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 OTHER=$HOME/.zsh
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
|
|
@ -11,6 +11,7 @@ else
|
|||
if [ $DISTRIB_ID == "ManjaroLinux" ]; then
|
||||
sudo pacman -S ttf-fira-code
|
||||
yay -S vscodium-bin
|
||||
sudo ln -s /usr/bin/vscode /usr/bin/code
|
||||
code --install-extension akamud.vscode-theme-onedark
|
||||
code --install-extension vscode-icons-team.vscode-icons
|
||||
fi
|
||||
|
|
|
@ -4,8 +4,8 @@ cp .zshrc $HOME
|
|||
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
|
||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
fi
|
||||
if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel9k" ]; then
|
||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
||||
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/powerlevel10k
|
||||
fi
|
||||
if [ -d "${HOME}/.zsh" ]; then
|
||||
rm -rf $HOME/.zsh
|
||||
|
|
Loading…
Add table
Reference in a new issue