blob: 0b6287a0528dcb1251b7b68fc32c7aa73ccc042b (
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
|
#!/usr/bin/env zsh
# Ryo aliases
# https://ryo.nopwd.lol
#
# fork of Luke's config
# https://github.com/lukesmithxyz/voidrice
# only if variables exists
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
[ -f "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC"
# be careful
alias \
cp="cp -i" \
mv="mv -i" \
rm="rm -I" \
bc="bc -ql" \
d='doas'
# colorize commands when possible.
alias \
ls="ls -hN --color=auto --group-directories-first" \
grep="grep --color=auto" \
diff="diff --color=auto" \
ccat="highlight --out-format=ansi" \
ip="ip -color=auto"
# Arch pacman
alias \
p="pacman" \
pacins='doas pacman -S' \
pacinf='pacman -Si' \
pacsch='pacman -Ss'
# Void xbps
alias \
xi="doas xbps-install" \
xr="sudo xbps-remove -R" \
xq="xbps-query"
alias \
ll='ls -lh' \
g="git" \
i='nsxiv' \
v="$EDITOR" \
re='source $ZDOTDIR/.zshrc' \
a='mpv --no-video' \
mkd="mkdir -pv" \
hmpv='mpv --really-quiet' \
hcurl='curl -L -O' \
hgit='git clone --depth=1 --no-tags --single-branch' \
hfont='fc-list | grep -i' \
hfind='find . -name' \
xclip='xclip -selection clipboard -r' \
idate='TZ=Iran date' \
hxkb='setxkbmap -option caps:swapescape -layout us,ir -option grp:shifts_toggle' \
ffmpeg="ffmpeg -hide_banner"
|