This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.conf
111 lines (95 loc) · 2.8 KB
/
aliases.conf
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
######################
### Simple Aliases ###
######################
alias day="echo $(( ( $(date +%s) - $(stat -c %W /) ) / 86400 ))"
# Reload aliases
alias rs="source ~/.bashrc"
alias ref="source ~/.bashrc"
# Clear aliases
alias c=clear
alias claer=clear
alias cl=clear
alias cleer=clear
# Cowsay
alias cowsay='cowsay -f tux'
# LS aliases
CA="--color=auto"
LSCMD="ls"
alias l="$LSCMD -l $CA"
alias la="$LSCMD -lA $CA"
alias al="$LSCMD -lA $CA"
alias ll="$LSCMD -la $CA"
alias sl="$LSCMD $CA"
alias lsa="$LSCMD -a $CA"
alias lsl="$LSCMD -l $CA"
alias ls="$LSCMD $CA"
# Sudo aliases
alias sodu="sudo"
alias soud="sudo"
alias sudu="sudo"
alias sodo="sudo"
alias please="sudo"
# NeoFetch aliases
alias neo="neofetch"
alias nf="neofetch"
alias neof="neofetch"
# Git aliases
alias g="git"
alias push='git add . && echo "Type a commit message." && read commitmsg && git commit -m "$commitmsg" && git push'
###############################
### Package Manager Aliases ###
###############################
# Pacman alises
alias pc="$sudo pacman"
alias pcin="$sudo pacman -S"
alias pciny="$sudo pacman -S --noconfirm"
alias pcrm="$sudo pacman -Rcs"
alias pcrmy="$sudo pacman -Rcs --noconfirm"
alias pcup="$sudo pacman -Syu"
alias pcupy="$sudo pacman -Syu --noconfirm"
alias pcupp="$sudo pacman -Syyu"
alias pcuppy="$sudo pacman -Syyu --noconfirm"
alias pcse="$sudo pacman -Ss"
# APT aliases (Debian, Ubuntu etc.)
alias aptin="$sudo apt install"
alias aptiny="$sudo apt install -y"
alias aptrm="$sudo apt remove"
alias aptrmy="$sudo apt remove -y"
alias aptup="$sudo apt update && sudo apt upgrade"
alias aptupy="$sudo apt update && sudo apt upgrade -y"
alias aptse="$sudo apt search"
# PKG aliases (Termux, FreeBSD etc.)
alias pkgin="$sudo pkg install"
alias pkginy="$sudo pkg install -y"
alias pkgrm="$sudo pkg remove"
alias pkgrmy="$sudo pkg remove -y"
alias pkgup="$sudo pkg update && $sudo pkg upgrade"
alias pkgupy="$sudo pkg update && $sudo pkg upgrade -y"
alias pkgse="$sudo pkg search"
# Zypper aliases
alias zp="$sudo zypper"
alias zy="$sudo zypper"
alias zyp="$sudo zypper"
alias zypp="$sudo zypper"
alias zyppe="$sudo zypper"
alias zyper="$sudo zypper"
alias zpin="$sudo zypper install"
alias zpiny="$sudo zypper install -y"
alias zprm="$sudo zypper remove"
alias zprmy="$sudo zypper remove -y"
alias zpup="$sudo zypper update"
alias zpupy="$sudo zypper update -y"
alias zpse="$sudo zypper search"
# Dnf aliases
alias dnfin="$sudo dnf in"
alias dnfiny="$sudo dnf in -y"
alias dnfrm="$sudo dnf remove"
alias dnfrmy="$sudo dnf remove -y"
alias dnfup="$sudo dnf update"
alias dnfupy="$sudo dnf update -y"
alias dnfse="$sudo dnf search"
# Nix conf aliases
alias nixconf="sudo $EDITOR /etc/nixos/configuration.nix && sudo nixos-rebuild switch"
# VNC aliases
alias vnc_start="vncserver -geometry 1280x720"
alias vnc_stop="vncserver -geometry 1280x720 -kill :1"