summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
blob: ed602519fb649404309025352c4d0457b484f8d1 (plain)
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
# Export colors
export TERM=xterm-256color

# Colors and prompt
autoload -U colors && colors
PS1='%B %F{245}m%f in %F{088}%f%~ %F{245}$ %f'

# History Files 
HISTFILE=~/.cache/zsh/histfile
HISTSIZE=1000
SAVEHIST=1000

zstyle :compinstall filename '/home/monoblanco/.config/zsh/.zshrc'

autoload -Uz compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots)

# Syntax Highlighting
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh

# Autosuggestions
source ~/.config/zsh/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

# Alias generales
alias ytsong="yt-dlp -x --audio-format mp3 -o '$HOME/stf/music/%(title)s.%(ext)s'"
alias rm="rm -i"
alias hdmion="xrandr --output HDMI-1 --mode 1360x768 --left-of DVI-D-1 && source '$HOME/.config/feh/.fehbg' && i3-msg restart"
alias hdmioff="xrandr --output HDMI-1 --off && source '$HOME/.config/feh/.fehbg' && i3-msg restart"
alias fmpv="setsid -f mpv"
alias ll="ls -lA"
alias vim="nvim"
alias vps="ssh root@drainerdomain.xyz"
alias t="todo.sh"

# Home clean
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
alias monerod='monerod --data-dir "$XDG_DATA_HOME"/bitmonero'
alias gpg2='gpg2 --homedir "$XDG_DATA_HOME"/gnupg'

# VIM TREE
alias vimweb="nvim ~/stf/webdev"


# Alias cfg
alias ci3="vim $HOME/.config/i3/config"
alias cpicom="vim $HOME/.config/picom.conf"
alias cdunst="vim $HOME/.config/dunst/dunstrc"
alias cmpd="vim $HOME/.config/mpd/mpd.conf"
alias cmpv="vim $HOME/.config/mpv/mpv.conf"
alias cncmp="vim $HOME/.config/ncmpcpp/config"
alias cnewsu="vim $HOME/.config/newsboat/urls"
alias cnews="vim $HOME/.config/newsboat/config"
alias cpoly="vim $HOME/.config/polybar/cuts/config.ini"
alias czsh="vim $HOME/.config/zsh/.zshrc"

# One-time-neofetch
[ $(pidof st | wc -w) -lt 2 ] && neofetch 

# Import colorscheme from 'wal' asynchronously
# &   # Run the process in the background.
# ( ) # Hide shell job control messages.
# Not supported in the "fish" shell.
# (cat ~/.cache/wal/sequences &)

# Alternative (blocks terminal for 0-3ms)
# cat ~/.cache/wal/sequences

# To add support for TTYs this line can be optionally added.
source ~/.cache/wal/colors-tty.sh

# Import the colors.
. "${HOME}/.cache/wal/colors.sh"

# Create the alias.
alias dmen='dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -fn "Iosevka-11"'