aboutsummaryrefslogtreecommitdiff
path: root/config/shell/aliases
blob: 4cc32a3c0d5fa17687093f3f121353861ff8f971 (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
#!/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" \
	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 specific
alias \
	pacins='doas pacman -S' \
	pacinf='pacman -Si' \
	pacsch='pacman -Ss'


alias \
	v="$EDITOR" \
	ll='ls -lh' \
	hmpv='mpv --really-quiet' \
	hcurl='curl -L -O' \
	hgit='git clone --depth=1 --no-tags --single-branch' \
	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"