mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
powerline10K support
This commit is contained in:
parent
e51ded0959
commit
f5517b47f6
3 changed files with 101 additions and 63 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
[submodule "custom/plugins/zsh-autosuggestions"]
|
[submodule "custom/plugins/zsh-autosuggestions"]
|
||||||
path = custom/plugins/zsh-autosuggestions
|
path = custom/plugins/zsh-autosuggestions
|
||||||
url = https://github.com/zsh-users/zsh-autosuggestions.git
|
url = https://github.com/zsh-users/zsh-autosuggestions.git
|
||||||
|
[submodule "themes/powerlevel10k"]
|
||||||
|
path = themes/powerlevel10k
|
||||||
|
url = https://github.com/romkatv/powerlevel10k.git
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
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
|
||||||
|
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
|
@ -8,7 +15,8 @@ export ZSH="$HOME/.oh-my-zsh"
|
||||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||||
ZSH_THEME="gnzh"
|
# See https://dev.to/abdfnx/oh-my-zsh-powerlevel10k-cool-terminal-1no0
|
||||||
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
|
|
||||||
# Set list of themes to pick from when loading at random
|
# Set list of themes to pick from when loading at random
|
||||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
|
|
@ -65,66 +73,90 @@ COMPLETION_WAITING_DOTS="true"
|
||||||
# Would you like to use another custom folder than $ZSH/custom?
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
# JIRA settings
|
||||||
|
# allows commands like:
|
||||||
|
# jira new
|
||||||
|
# jira MP-1071
|
||||||
|
# jira dashboard "Triage :: Panic Leap"
|
||||||
|
# jira mine
|
||||||
|
# jira tempo
|
||||||
|
# jira reported "Heather Peterson"
|
||||||
|
# jira assigned
|
||||||
|
JIRA_URL="https://appneta.atlassian.net/"
|
||||||
|
JIRA_NAME="Fred Klassen" # update with your JIRA name
|
||||||
|
JIRA_TEMPO_PATH="jira/software/c/projects/MP/boards/216"
|
||||||
|
|
||||||
|
# Pure settings - uncomment if you want an fancy prompt
|
||||||
|
#PURE_PROMPT_SYMBOL='➜'
|
||||||
|
|
||||||
# Which plugins would you like to load?
|
# Which plugins would you like to load?
|
||||||
# Standard plugins can be found in $ZSH/plugins/
|
# Standard plugins can be found in $ZSH/plugins/
|
||||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
if [ "$MSYSTEM" = "MINGW64" ]; then
|
plugins=(
|
||||||
plugins=(
|
alias-finder
|
||||||
alias-finder
|
aliases
|
||||||
aliases
|
compleat
|
||||||
aws
|
copybuffer
|
||||||
colored-man-pages
|
copyfile
|
||||||
command-not-found
|
copypath
|
||||||
common-aliases
|
dircycle
|
||||||
compleat
|
dirpersist
|
||||||
copybuffer
|
docker-compose
|
||||||
copyfile
|
docker-machine
|
||||||
copypath
|
docker
|
||||||
dircycle
|
genpass
|
||||||
docker
|
git-escape-magic
|
||||||
emoji
|
git
|
||||||
extract
|
gitignore
|
||||||
fasd
|
gpg-agent
|
||||||
fd
|
jira
|
||||||
git
|
man
|
||||||
jfrog
|
pip
|
||||||
man
|
python
|
||||||
ssh-agent
|
rsync
|
||||||
vscode
|
safe-paste
|
||||||
zsh-autosuggestions
|
ssh-agent
|
||||||
zsh-interactive-cd
|
vscode
|
||||||
)
|
web-search
|
||||||
else
|
zsh-autosuggestions
|
||||||
plugins=(
|
zsh-interactive-cd
|
||||||
alias-finder
|
)
|
||||||
aliases
|
|
||||||
aws
|
# Linux only optional plugins
|
||||||
colored-man-pages
|
case "$(uname)" in
|
||||||
command-not-found
|
Linux) plugins+=(
|
||||||
common-aliases
|
debian
|
||||||
compleat
|
systemd
|
||||||
copybuffer
|
)
|
||||||
copyfile
|
;;
|
||||||
copypath
|
esac
|
||||||
dircycle
|
|
||||||
docker
|
# macOS only optional plugins
|
||||||
emoji
|
case "$(uname)" in
|
||||||
extract
|
Darwin) plugins+=(
|
||||||
fasd
|
brew
|
||||||
fd
|
forklift # requires ForkLift from App Store
|
||||||
git
|
)
|
||||||
jfrog
|
;;
|
||||||
man
|
esac
|
||||||
ssh-agent
|
|
||||||
thefuck
|
# non-Windows optional plugins
|
||||||
tmux
|
case "$(uname)" in
|
||||||
vscode
|
Linux|Darwin) plugins+=(
|
||||||
zsh-autosuggestions
|
command-not-found
|
||||||
zsh-interactive-cd
|
tmux
|
||||||
)
|
tmuxinator
|
||||||
fi
|
);;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# optionally select your 'z' command-line filesystem jump tool
|
||||||
|
# NOTE: zoxide requires installation of zoxide package
|
||||||
|
plugins+=(
|
||||||
|
fasd
|
||||||
|
#zoxide
|
||||||
|
)
|
||||||
|
|
||||||
zstyle :omz:plugins:ssh-agent agent-forwarding yes
|
zstyle :omz:plugins:ssh-agent agent-forwarding yes
|
||||||
#zstyle :omz:plugins:ssh-agent helper ksshaskpass
|
#zstyle :omz:plugins:ssh-agent helper ksshaskpass
|
||||||
|
|
@ -166,7 +198,6 @@ alias gnb='git nb' # new branch aka checkout -b
|
||||||
alias gdtree='git diff-tree'
|
alias gdtree='git diff-tree'
|
||||||
alias gdt='git difftool'
|
alias gdt='git difftool'
|
||||||
alias gmt='git mergetool'
|
alias gmt='git mergetool'
|
||||||
unalias rm
|
|
||||||
# Homebrew upgrade packages (macOS only)
|
# Homebrew upgrade packages (macOS only)
|
||||||
alias brewu='brew update && brew upgrade && brew cleanup && brew doctor'
|
alias brewu='brew update && brew upgrade && brew cleanup && brew doctor'
|
||||||
|
|
||||||
|
|
@ -180,10 +211,10 @@ if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# comment out if you want to disable Starship and use ZSH_THEME
|
# uncomment if you want to enable Starship
|
||||||
if [ -f "$HOME/.config/starship.toml" ]; then
|
#if [ -f "$HOME/.config/starship.toml" ]; then
|
||||||
eval "$(starship init zsh)"
|
# eval "$(starship init zsh)"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# stuff for Windows
|
# stuff for Windows
|
||||||
if [ "$MSYSTEM" = "MINGW64" ]; then
|
if [ "$MSYSTEM" = "MINGW64" ]; then
|
||||||
|
|
@ -193,4 +224,7 @@ if [ "$MSYSTEM" = "MINGW64" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# opt out of et telemetry data upload
|
# opt out of et telemetry data upload
|
||||||
ET_NO_TELEMETRY=1
|
ET_NO_TELEMETRY=1
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
|
||||||
1
themes/powerlevel10k
Submodule
1
themes/powerlevel10k
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a30145b0f82d06770e924e9eac064ed223a94e6b
|
||||||
Loading…
Add table
Add a link
Reference in a new issue