Repository navigation
Expand file tree
/
Copy pathdot_zshrc
More file actions
81 lines (65 loc) · 1.77 KB
/
Copy pathdot_zshrc
File metadata and controls
81 lines (65 loc) · 1.77 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
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/.local/bin:/usr/local/bin:$PATH
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/platform-tools
# Path to your Oh My Zsh installation.
# export EDITOR=code
zi() {
cd "$(zoxide query -i)"
}
zd() {
if [ $# -eq 0 ]; then
builtin cd ~ && return
elif [ -d "$1" ]; then
builtin cd "$1"
else
z "$@" && printf "\U000F17A9 " && pwd
fi
}
export ZSH="$HOME/.oh-my-zsh"
alias c='clear'
alias pf='fastfetch'
alias ls='eza -lh --group-directories-first --icons=auto'
alias ll='eza -al --group-directories-first --icons=always'
alias lt='eza -a --tree --level=2 --icons=always'
alias cd="zd"
alias ff='sudo fd -HI -a --exclude .snapshots'
alias is='fzf --preview="bat --style=numbers --color=always {}"'
alias nis='nvim $(fzf --preview="bat --color=always {}")'
# Directories
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# Set name of the theme to load --- if set to "random", it will
# 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="robbyrussell"
plugins=(
git
sudo
zsh-autosuggestions
fast-syntax-highlighting
copyfile
copybuffer
)
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
source $ZSH/oh-my-zsh.sh
if [[ $(tty) == *"pts"* ]]; then
fastfetch
fi
if command -v starship &>/dev/null; then
eval "$(starship init zsh)"
fi
if command -v zoxide &>/dev/null; then
eval "$(zoxide init zsh)"
fi
if command -v fzf &>/dev/null; then
source <(fzf --zsh)
fi
eval "$(op completion zsh)"; compdef _op op
eval "$(/usr/bin/mise activate zsh)"