-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
50 lines (39 loc) · 842 Bytes
/
.zshrc
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
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Theme
ZSH_THEME="awesomepanda"
# Plugins
plugins=(
git
zsh-syntax-highlighting
history-substring-search
zsh-autosuggestions
)
# Initialize oh-my-zsh
source $ZSH/oh-my-zsh.sh
# Enable auto-correction.
setopt HIST_IGNORE_DUPS
ENABLE_CORRECTION="true"
# Set history format
HIST_STAMPS="mm/dd/yyyy"
# Preferred editor
export EDITOR='vim'
# Aliases
alias ll='ls -l'
alias la='ls -a'
alias lh='ls -lh'
alias lla='ls -la'
# Enhanced grep
alias grep='grep --color=auto'
# Clear the terminal screen
alias cls='clear'
alias vim="nvim"
alias zshconfig="vim ~/.zshrc"
function ya() {
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi
rm -f -- "$tmp"
}