-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
63 lines (48 loc) · 1.96 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
echo ' $$$$$$\ $$\ $$$$$$$\ $$$$$$\ $$\ $$\
\_$$ _|$$ |$$ __$$\ $$ __$$\ $$$\ $$ |
$$ | $$ |$$ | $$ | $$$$$$\ $$ / \__| $$$$$$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$\ $$ | $$$$$$\ $$$$$$\$$$$\ $$$$$$\
$$ | $$ |$$$$$$$ |$$ __$$\ \$$$$$$\ $$ __$$\ $$ __$$\ \____$$ |\____$$\ $$ $$\$$ |$$ __$$\ $$ _$$ _$$\ $$ __$$\
$$ | $$ |$$ __$$< $$$$$$$$ | \____$$\ $$$$$$$$ |$$ | $$ | $$$$ _/ $$$$$$$ |$$ \$$$$ |$$ / $$ |$$ / $$ / $$ |$$$$$$$$ |
$$ | $$ |$$ | $$ |$$ ____|$$\ $$ |$$ ____|$$ | $$ | $$ _/ $$ __$$ |$$ |\$$$ |$$ | $$ |$$ | $$ | $$ |$$ ____|
$$$$$$\ $$ |$$ | $$ |\$$$$$$$\ \$$$$$$ |\$$$$$$$\ $$ | $$ |$$$$$$$$\\$$$$$$$ |$$ | \$$ |\$$$$$$ |$$ | $$ | $$ |\$$$$$$$\
\______|\__|\__| \__| \_______| \______/ \_______|\__| \__|\________|\_______|\__| \__| \______/ \__| \__| \__| \_______|'
setxkbmap -option caps:escape
export PATH=$PATH:/home/ilresenzanome/.spicetify
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="afowler"
ENABLE_CORRECTION="true"
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
zsh-history-substring-search
)
source $ZSH/oh-my-zsh.sh
# Pronmpt configuration
function dir_icon {
if [[ "$PWD" == "$HOME" ]]; then
echo "%B%F{black}%f%b"
else
echo "%B%F{cyan}%f%b"
fi
}
function parse_git_branch {
local branch
branch=$(git symbolic-ref --short HEAD 2> /dev/null)
if [ -n "$branch" ]; then
echo " [$branch]"
fi
}
PROMPT='%F{cyan}%f %F{magenta}%n%f $(dir_icon) %F{red}%~%f%${vcs_info_msg_0_} %F{yellow}$(parse_git_branch)%f %(?.%B%F{green}.%F{red})%f%b '
# Aliases
alias ls='lsd'
alias cat='bat'
alias htop-'btop'
alias m='ncmpcpp'
alias cq='nvim $HOME/.config/qtile/config.py'
alias image="kitten icat"
alias f="ranger"
alias e="emacs"
alias mpc='mpc --port 6601'
alias ra="ranger"
alias v="nvim"