Skip to content

Commit 595960f

Browse files
committed
Default shell .zshrc configs
1 parent fa164eb commit 595960f

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed

config/.zshrc

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

0 commit comments

Comments
 (0)