Skip to content

Commit 6436d43

Browse files
committed
adding ZSH config
1 parent 15a4ca4 commit 6436d43

File tree

1 file changed

+128
-0
lines changed

1 file changed

+128
-0
lines changed

.zshrc

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2+
# Initialization code that may require console input (password prompts, [y/n]
3+
# confirmations, etc.) must go above this block; everything else may go below.
4+
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
5+
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
6+
fi
7+
8+
# If you come from bash you might have to change your $PATH.
9+
# export PATH=$HOME/bin:/usr/local/bin:$PATH
10+
11+
# Path to your oh-my-zsh installation.
12+
export ZSH="$HOME/.oh-my-zsh"
13+
14+
# Set name of the theme to load --- if set to "random", it will
15+
# load a random theme each time oh-my-zsh is loaded, in which case,
16+
# to know which specific one was loaded, run: echo $RANDOM_THEME
17+
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
18+
#ZSH_THEME="robbyrussell"
19+
ZSH_THEME="powerlevel10k/powerlevel10k"
20+
21+
# Set list of themes to pick from when loading at random
22+
# Setting this variable when ZSH_THEME=random will cause zsh to load
23+
# a theme from this variable instead of looking in $ZSH/themes/
24+
# If set to an empty array, this variable will have no effect.
25+
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
26+
27+
# Uncomment the following line to use case-sensitive completion.
28+
# CASE_SENSITIVE="true"
29+
30+
# Uncomment the following line to use hyphen-insensitive completion.
31+
# Case-sensitive completion must be off. _ and - will be interchangeable.
32+
# HYPHEN_INSENSITIVE="true"
33+
34+
# Uncomment one of the following lines to change the auto-update behavior
35+
# zstyle ':omz:update' mode disabled # disable automatic updates
36+
# zstyle ':omz:update' mode auto # update automatically without asking
37+
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
38+
39+
# Uncomment the following line to change how often to auto-update (in days).
40+
# zstyle ':omz:update' frequency 13
41+
42+
# Uncomment the following line if pasting URLs and other text is messed up.
43+
# DISABLE_MAGIC_FUNCTIONS="true"
44+
45+
# Uncomment the following line to disable colors in ls.
46+
# DISABLE_LS_COLORS="true"
47+
48+
# Uncomment the following line to disable auto-setting terminal title.
49+
# DISABLE_AUTO_TITLE="true"
50+
51+
# Uncomment the following line to enable command auto-correction.
52+
# ENABLE_CORRECTION="true"
53+
54+
# Uncomment the following line to display red dots whilst waiting for completion.
55+
# You can also set it to another string to have that shown instead of the default red dots.
56+
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
57+
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
58+
# COMPLETION_WAITING_DOTS="true"
59+
60+
# Uncomment the following line if you want to disable marking untracked files
61+
# under VCS as dirty. This makes repository status check for large repositories
62+
# much, much faster.
63+
# DISABLE_UNTRACKED_FILES_DIRTY="true"
64+
65+
# Uncomment the following line if you want to change the command execution time
66+
# stamp shown in the history command output.
67+
# You can set one of the optional three formats:
68+
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
69+
# or set a custom format using the strftime function format specifications,
70+
# see 'man strftime' for details.
71+
# HIST_STAMPS="mm/dd/yyyy"
72+
73+
# Would you like to use another custom folder than $ZSH/custom?
74+
# ZSH_CUSTOM=/path/to/new-custom-folder
75+
76+
# Which plugins would you like to load?
77+
# Standard plugins can be found in $ZSH/plugins/
78+
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
79+
# Example format: plugins=(rails git textmate ruby lighthouse)
80+
# Add wisely, as too many plugins slow down shell startup.
81+
plugins=(
82+
git
83+
zsh-autosuggestions
84+
zsh-syntax-highlighting
85+
)
86+
87+
source $ZSH/oh-my-zsh.sh
88+
89+
# User configuration
90+
91+
# export MANPATH="/usr/local/man:$MANPATH"
92+
93+
# You may need to manually set your language environment
94+
# export LANG=en_US.UTF-8
95+
96+
# Preferred editor for local and remote sessions
97+
# if [[ -n $SSH_CONNECTION ]]; then
98+
# export EDITOR='vim'
99+
# else
100+
# export EDITOR='mvim'
101+
# fi
102+
103+
# Compilation flags
104+
# export ARCHFLAGS="-arch x86_64"
105+
106+
# Set personal aliases, overriding those provided by oh-my-zsh libs,
107+
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
108+
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
109+
# For a full list of active aliases, run `alias`.
110+
#
111+
# Example aliases
112+
# alias zshconfig="mate ~/.zshrc"
113+
# alias ohmyzsh="mate ~/.oh-my-zsh"
114+
115+
export SDKMAN_DIR="$HOME/.sdkman"
116+
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
117+
118+
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
119+
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
120+
121+
122+
if [ -f ~/.bash_aliases ]; then
123+
. ~/.bash_aliases
124+
fi
125+
# Open tmux by default
126+
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
127+
exec tmux new-session -A -s main
128+
fi

0 commit comments

Comments
 (0)