Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • iliya.saroukha/dotfiles
1 result
Show changes
Commits on Source (5)
......@@ -3,3 +3,4 @@ go/
peda/
**/__pycache__
Zotero/
**/node_modules/
Subproject commit 762202c48c08af95314dc1474e4cb482c8af242f
Subproject commit 0a91810786435567c03302325a36148438c4ebec
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
foreground = "#ea9a97"
style = "plain"
template = "{{ .UserName }}@{{ .HostName }}"
type = "session"
[[blocks.segments]]
type = 'path'
style = 'plain'
background = 'transparent'
foreground = '#9ccfd8'
template = ' {{ .Path }} '
[blocks.segments.properties]
style = 'letter'
[[blocks.segments]]
type = 'git'
style = 'plain'
foreground = '#9ccfd8'
background = 'transparent'
foreground_templates = [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#f6c177{{ end }}",
"{{ if gt .Ahead 0 }}#c4a7e7{{ end }}",
"{{ if gt .Behind 0 }}#eb6f92{{ end }}"
]
template = '{{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}  {{ end }}{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
[blocks.segments.properties]
branch_icon = "\uE725 "
commit_icon = '@'
fetch_status = true
[[blocks]]
type = 'rprompt'
overflow = 'hidden'
[[blocks.segments]]
type = 'executiontime'
style = 'plain'
foreground = '#f6c177'
background = 'transparent'
template = '{{ .FormattedMs }}'
[blocks.segments.properties]
threshold = 5000
[[blocks.segments]]
type = "sysinfo"
template = "  {{ round .PhysicalPercentUsed .Precision }}% "
style = "plain"
[[blocks]]
type = 'prompt'
alignment = 'left'
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground_templates = [
"{{if gt .Code 0}}#eb6f92{{end}}",
"{{if eq .Code 0}}#ea9a97{{end}}",
]
background = 'transparent'
template = '❯'
[transient_prompt]
foreground_templates = [
"{{if gt .Code 0}}#eb6f92{{end}}",
"{{if eq .Code 0}}#ea9a97{{end}}",
]
background = 'transparent'
template = '❯ '
[secondary_prompt]
foreground = '#ea9a97'
background = 'transparent'
template = '❯❯ '
......@@ -17,3 +17,10 @@ show_always = true
[hostname]
ssh_only = false
# [memory_usage]
# disabled = false
# threshold = -1
# symbol = '󰍛'
# style = 'bold dimmed green'
# format = '$symbol [${ram}]($style) '
# 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 [[ -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:/usr/local/bin:$PATH
......@@ -15,7 +15,8 @@ export ZSH="$HOME/.oh-my-zsh"
# 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
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
# ZSH_THEME="powerlevel10k/powerlevel10k"
# ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
......@@ -152,7 +153,7 @@ export FZF_DEFAULT_OPTS="
--margin=1 --padding=1"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
......@@ -167,3 +168,9 @@ export PATH="$PATH:$(go env GOBIN):$(go env GOPATH)/bin"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/rosepine.toml)"
export STARSHIP_CONFIG=$HOME/.config/starship/starship.toml
eval "$(starship init zsh)"