-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalias
More file actions
64 lines (53 loc) · 2.09 KB
/
alias
File metadata and controls
64 lines (53 loc) · 2.09 KB
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
# modified commands
alias df='df -h'
alias diff='colordiff' # requires colordiff package
alias du='du -c -h'
alias free='free -m' # show sizes in mb
alias grep='grep -E --color=auto -d skip'
alias mkdir='mkdir -p -v'
alias more='less' # more doesn't have vim shortcuts
alias ping='ping -c 3'
if ! $_isroot; then
alias scat='sudo cat'
alias svim='sudoedit'
alias reboot='sudo reboot'
fi
# pacman aliases
if ! $_isroot; then
alias pacman='sudo pacman'
fi
alias pacupg='pacman -Syu' # synchronize with repositories and then upgrade packages that are out of date on the local system.
alias pacupd='pacman -Sy' # refresh of all package lists after updating /etc/pacman.d/mirrorlist
alias pacin='pacman -S' # install specific package(s) from the repositories
alias pacinu='pacman -U' # install specific local package(s)
alias pacre='pacman -R' # remove the specified package(s), retaining its configuration(s) and required dependencies
alias pacun='pacman -Rcsn' # remove the specified package(s), its configuration(s) and unneeded dependencies
alias pacinfo='pacman -Si' # display information about a given package in the repositories
alias pacse='pacman -Ss' # search for package(s) in the repositories
alias pacclean="pacman -Sc" # delete all not currently installed package files
alias pacmake="makepkg -fcsi" # make package from pkgbuild file in current directory
alias pacmirrors='svim /etc/pacman.d/mirrorlist'
# ls
alias ls='ls -h --color=auto'
alias l='ls -Ah --color=auto'
alias lr='ls -r'
alias ll='ls -alh'
alias lm='la | less'
# alias for activating env1
alias venv='source ~/env1/bin/activate'
# With password manager, disable logging the password in ram
alias qutebrowser='qutebrowser --loglines 0'
# Convenience aliases
alias v=vim
__git_complete g __git_main
alias g=git
# Json pretty printing
pjson_s() {
echo "$1" | python -m json.tool
}
pjson_f() {
python -m json.tool "$1"
}
pjson_w() {
curl "$1" | python -m json.tool
}