-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
111 lines (76 loc) · 2.75 KB
/
.zshrc
File metadata and controls
111 lines (76 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# 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:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/nathan/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"
ZSH_THEME="lukerandall"
HYPHEN_INSENSITIVE="true"
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
ENABLE_CORRECTION="true"
setopt auto_cd
HIST_STAMPS="dd.mm.yyyy"
export EDITOR='emacs'
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
fzf
thefuck # press ESC twice to correct
vi-mode
zsh-autosuggestions
zsh-completions
zsh-history-substring-search
zsh-syntax-highlighting # must be last
)
# - * - User configuration - * -
# export MANPATH="/usr/local/man:$MANPATH"
# PATH
# path+=('~/.emacs.d/bin') # new syntax? something wrong?
PATH=/home/nathan/.emacs.d/bin:$PATH
PATH=/usr/bin/pip:$PATH
PATH=~/.cargo/bin:$PATH
export PATH
# PYTHONPATH
# - Aliases -
# make and move into direcotry
mkcd () { mkdir -p $1; cd $1 }
# common
alias ...='cd ../..'
alias pls='sudo !!'
alias yeet="rm -rf"
alias cl='clear'
# package managment
alias sps='sudo pacman -S'
alias spsyu='sudo pacman -Syu'
alias spss='sudo pacman -Ss'
# alias yay='yay --noconfirm'
alias yayss='yay -Ss'
# Programs
alias vivaldi='vivaldi-stable'
alias vim='nvim'
alias wn='dict-wn'
# Variables
RUST_SRC_PATH='/home/nathan/.rustup/toolchains/stable-x86_64-unknown-linux-gnu'
# Souce oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Starship prompt
# eval "$(starship init zsh)"
# fortune-mod (quote)
fortune
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/nathan/google-cloud-sdk/path.zsh.inc' ]; then . '/home/nathan/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/nathan/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/nathan/google-cloud-sdk/completion.zsh.inc'; fi