-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh_aliases
60 lines (50 loc) · 2.43 KB
/
.zsh_aliases
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
# -------------------------------GENERAL----------------------------------
alias cp='cp -riv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
alias wget='wget -c'
alias cat=batcat # Preferred 'cat' implementation
alias ccat='\cat' # In case regular cat usage is preferred
alias top=btm # Preferred 'top' implementation
alias c=clear
alias src='source $DOTFILES/.zshrc'
alias g=git
alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
alias fix_stty='stty sane' # fix_stty: Restore terminal settings when screwed up
alias fix_term='echo -e "\033c"' # fix_term: Reset the conosle. Similar to the reset command
alias qfind='find . -iname' # qfind: Quickly search for file
alias zip='zip -r'
alias open='xdg-open'
alias cd=z
alias rm='rm -rf'
alias ps=procs
alias r=ranger
# -------------------------------systemctl----------------------------------
alias sctl=systemctl
alias sctls="systemctl --type=service | grep -i"
alias i2pd-start="sudo systemctl start i2pd"
alias i2pd-stop="sudo systemctl stop i2pd"
# -------------------------------LS----------------------------------
# Directory Listing aliases
alias ls=lsd # Preferred ls implementation
alias l=ls # short listing, all files
alias l.='ls -d .*' # short listing, only hidden files - .*
alias la='ls -A' # show hidden files
alias ll='ls -lAh' # long
alias L='ls -lathF' # long, sort by oldest to newest
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
# -------------------------------MISC----------------------------------
alias xclip="xclip -selection c"
alias urldecode='sed "s@+@ @g;s@%@\\\\x@g" | xargs -0 printf "%b"'
alias celeste-pull='wd=$(pwd) ; cd ~/.local/share/Celeste && git pull ; cd $wd'
alias celeste-push='wd=$(pwd) ; cd ~/.local/share/Celeste && g a && g c "Updated $(date)" && g pu ; cd $wd'
python() {
if [[ $# == 0 ]]
then
ipython
else
python3 $@
fi
}