Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iliya.saroukha
dotfiles
Commits
4f5679a8
Commit
4f5679a8
authored
7 months ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
using starship config in zsh prompt
parent
6186cf24
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.zshrc
+12
-5
12 additions, 5 deletions
.zshrc
with
12 additions
and
5 deletions
.zshrc
+
12
−
5
View file @
4f5679a8
# 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
)
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment