-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
104 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#source_file: https://github.com/dreamsofautonomy/zen-omp | ||
console_title_template = '{{ .Shell }} in {{ .Folder }}' | ||
version = 3 | ||
final_space = true | ||
|
||
[secondary_prompt] | ||
template = '❯❯ ' | ||
foreground = 'magenta' | ||
background = 'transparent' | ||
|
||
[transient_prompt] | ||
template = '❯ ' | ||
background = 'transparent' | ||
foreground_templates = [ | ||
'{{if gt .Code 0}}red{{end}}', | ||
'{{if eq .Code 0}}magenta{{end}}', | ||
] | ||
|
||
[[blocks]] | ||
type = 'prompt' | ||
alignment = 'left' | ||
newline = true | ||
|
||
[[blocks.segments]] | ||
template = '{{ .Path }}' | ||
foreground = 'blue' | ||
background = 'transparent' | ||
type = 'path' | ||
style = 'plain' | ||
|
||
[blocks.segments.properties] | ||
cache_duration = 'none' | ||
style = 'full' | ||
|
||
[[blocks.segments]] | ||
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>' | ||
foreground = 'p:grey' | ||
background = 'transparent' | ||
type = 'git' | ||
style = 'plain' | ||
|
||
[blocks.segments.properties] | ||
branch_icon = '' | ||
cache_duration = 'none' | ||
commit_icon = '@' | ||
fetch_status = true | ||
|
||
[[blocks]] | ||
type = 'rprompt' | ||
overflow = 'hidden' | ||
|
||
[[blocks.segments]] | ||
template = '{{ .FormattedMs }}' | ||
foreground = 'yellow' | ||
background = 'transparent' | ||
type = 'executiontime' | ||
style = 'plain' | ||
|
||
[blocks.segments.properties] | ||
cache_duration = 'none' | ||
threshold = 5000 | ||
|
||
[[blocks]] | ||
type = 'prompt' | ||
alignment = 'left' | ||
newline = true | ||
|
||
[[blocks.segments]] | ||
template = '❯' | ||
background = 'transparent' | ||
type = 'text' | ||
style = 'plain' | ||
foreground_templates = [ | ||
'{{if gt .Code 0}}red{{end}}', | ||
'{{if eq .Code 0}}magenta{{end}}', | ||
] | ||
|
||
[blocks.segments.properties] | ||
cache_duration = 'none' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
# 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. | ||
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH | ||
|
||
# Path to your oh-my-zsh installation. | ||
export ZSH="$HOME/.oh-my-zsh" | ||
# export CLASSPATH=/usr/share/java/mariadb-jdbc/mariadb-java-client-3.3.2.jar:$CLASSPATH | ||
|
||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | ||
ZSH_THEME="powerlevel10k/powerlevel10k" | ||
|
||
plugins=(git zsh-syntax-highlighting zsh-autosuggestions) | ||
|
||
source $ZSH/oh-my-zsh.sh | ||
|
||
# User configuration | ||
#History | ||
export HISTFILE=~/.zsh_history | ||
export HISTSIZE=10000 | ||
export SAVEHIST=10000 | ||
#zoxide | ||
eval "$(zoxide init --cmd cd zsh)" | ||
|
||
#ohmyposh | ||
eval "$(oh-my-posh init zsh --config $HOME/dotfiles/ohmyposh/posh.toml)" | ||
# autocompletion | ||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh | ||
ZSH_AUTOSUGGEST_STRATEGY=(history completion) | ||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#A3B963" | ||
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 | ||
#with color | ||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | ||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) | ||
# end of completion | ||
#aliases | ||
source ~/.zsh_aliases | ||
|
||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | ||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | ||
export EDITOR="vim" | ||
#deno | ||
. "/home/lun/.deno/env" |