This commit is contained in:
Marc Beninca 2024-11-18 12:38:15 +01:00
parent 0cce49e919
commit d82805ff38
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
28 changed files with 0 additions and 0 deletions

View file

@ -1,83 +0,0 @@
# show package information
acl() {
apt-cache \
show \
"${@}"
}
# package versions policy
acp() {
apt-cache \
policy \
"${@}"
}
# search package
acs() {
apt-cache \
search \
"${@}"
}
#
agap() {
apt-get \
autopurge \
"${@}"
}
#
agar() {
apt-get \
autoremove \
"${@}"
}
# clean packages cache
agc() {
apt-get \
clean \
"${@}"
}
# upgrade allowing package installation or removal
agfu() {
apt-get \
full-upgrade \
"${@}"
}
# install packages
agi() {
apt-get \
install \
"${@}"
}
#
agp() {
apt-get \
purge \
"${@}"
}
#
agr() {
apt-get \
remove \
"${@}"
}
# update packages catalog
agud() {
apt-get \
update \
"${@}"
}
# upgrade forbidding package installation or removal
agug() {
apt-get \
upgrade \
"${@}"
}

View file

@ -1,4 +0,0 @@
bat() {
batcat \
"${@}"
}

View file

@ -1,64 +0,0 @@
bfdf() { sh_btrfs_filesystem_d_f "${@}"; }
sh_btrfs_filesystem_d_f() {
btrfs \
filesystem \
df \
"${@}"
}
bfdu() { sh_btrfs_filesystem_d_u "${@}"; }
sh_btrfs_filesystem_d_u() {
btrfs \
filesystem \
du \
--summarize \
"${@}"
}
bfu() { sh_btrfs_filesystem_usage "${@}"; }
sh_btrfs_filesystem_usage() {
btrfs \
filesystem \
usage \
"${@}"
}
bpg() { sh_btrfs_property_get "${@}"; }
sh_btrfs_property_get() {
btrfs \
property \
get \
"${@}"
}
bsc() { sh_btrfs_subvolume_create "${@}"; }
sh_btrfs_subvolume_create() {
btrfs \
subvolume \
create \
"${@}"
}
bsd() { sh_btrfs_subvolume_delete "${@}"; }
sh_btrfs_subvolume_delete() {
btrfs \
subvolume \
delete \
"${@}"
}
bss() { sh_btrfs_subvolume_snapshot "${@}"; }
sh_btrfs_subvolume_snapshot() {
btrfs \
subvolume \
snapshot \
"${@}"
}
bssr() { sh_btrfs_subvolume_snapshot_r "${@}"; }
sh_btrfs_subvolume_snapshot_r() {
btrfs \
subvolume \
snapshot -r \
"${@}"
}

View file

@ -1,23 +0,0 @@
bb() {
byobu \
"${@}"
}
bba() {
byobu \
attach-session \
"${@}"
}
bbl() {
byobu \
ls \
"${@}"
}
bbnd() {
byobu \
new-session \
-d \
"${@}"
}

View file

@ -1,13 +0,0 @@
# change mode to directory
cmd() {
chmod \
"755" \
"${@}"
}
# change mode to file
cmf() {
chmod \
"644" \
"${@}"
}

View file

@ -1,13 +0,0 @@
# change owner to root
cor() {
chown \
"0:0" \
"${@}"
}
# change owner to user
cou() {
chown \
"1000:1000" \
"${@}"
}

View file

@ -1,5 +0,0 @@
# clear terminal
c() {
clear \
"${@}"
}

View file

@ -1,6 +0,0 @@
# copy interactively
cpi() {
cp \
--interactive \
"${@}"
}

View file

@ -1,4 +0,0 @@
em() {
emacs \
"${@}"
}

View file

@ -1,4 +0,0 @@
ev() {
evince \
"${@}"
}

View file

@ -1,8 +0,0 @@
# grep from current directory with regex
g() {
grep \
--directories "recurse" \
--line-number \
--regexp \
"${@}"
}

View file

@ -1,12 +0,0 @@
# kill a process by id
k() {
kill \
"${@}"
}
# force kill a process by id
kf() {
kill \
-9 \
"${@}"
}

View file

@ -1,12 +0,0 @@
# kill all instances of a process by name
ka() {
killall \
"${@}"
}
# force kill all instances of a process by name
kaf() {
killall \
-9 \
"${@}"
}

View file

@ -1,29 +0,0 @@
export LS_COLORS="\
di=0;94\
"
# list current directory’s entries
l() {
ls \
--all \
--color \
-l \
-p \
--time-style "+" \
"${@}"
}
# list timestamps
lt() {
l \
--time-style "+%Y%m%d-%H%M%S%-:::z" \
"${@}"
}
# list timestamps recent last
ltt() {
lt \
--reverse \
-t \
"${@}"
}

View file

@ -1,27 +0,0 @@
# list block devices
lb() {
lbo \
"SIZE" \
"TYPE" \
"FSTYPE" \
"LABEL" \
"MOUNTPOINTS"
}
# base arguments
lbb() {
lsblk \
--noempty \
"${@}"
}
# output arguments
lbo() {
local argument
local arguments="NAME"
for argument in "${@}"; do
arguments="${arguments},${argument}"
done
lbb \
--output "${arguments}"
}

View file

@ -1,12 +0,0 @@
# make a directory
md() {
mkdir \
"${@}"
}
# make a directory after making its parents
mdp() {
mkdir \
--parents \
"${@}"
}

View file

@ -1,11 +0,0 @@
m() {
mount \
"${@}"
}
# remount read-only medium in read-write
remount() {
mount \
-o "remount,rw" \
"/usr/lib/live/mount/medium"
}

View file

@ -1,6 +0,0 @@
# move interactively
mvi() {
mv \
--interactive \
"${@}"
}

View file

@ -1,4 +0,0 @@
nn() {
nano \
"${@}"
}

View file

@ -1,5 +0,0 @@
nb() { news_boat "${@}"; }
news_boat() {
newsboat \
"${@}"
}

View file

@ -1,12 +0,0 @@
# display pass entry’s content
p() {
pass \
"${@}"
}
# copy passphrase into clipboard
pc() {
pass \
--clip \
"${@}"
}

View file

@ -1,7 +0,0 @@
# look for a string in processes names
pg() {
ps \
-A |
grep \
"${@}"
}

View file

@ -1,15 +0,0 @@
# generate passwords
pwg() {
pwgen \
-1 \
--num-passwords 1048576 \
--secure \
"${@}"
}
# generate passwords with symbols
pwgs() {
pwg \
--symbols \
"${@}"
}

View file

@ -1,6 +0,0 @@
# remove interactively
rmi() {
rm \
--interactive \
"${@}"
}

View file

@ -1,31 +0,0 @@
# synchronize
rs() {
rsb \
"${@}"
}
# base arguments
rsb() {
rsync \
--archive \
--no-inc-recursive \
--partial \
--progress \
--verbose \
"${@}"
}
# synchronize and delete after
rsda() {
rsb \
--delete-after \
"${@}"
}
# synchronize and delete before
rsdb() { r_sync_delete_before "${@}"; }
r_sync_delete_before() {
rsb \
--delete-before \
"${@}"
}

View file

@ -1,27 +0,0 @@
tc() {
tv \
--create \
--auto-compress \
--file \
"${@}"
}
tl() {
tv \
--list \
--file \
"${@}"
}
tv() {
tar \
--verbose \
"${@}"
}
tx() {
tv \
--extract \
--file \
"${@}"
}

View file

@ -1,4 +0,0 @@
tm() {
tmux \
"${@}"
}

View file

@ -1,10 +0,0 @@
t() {
tree \
"${@}"
}
ta() {
tree \
-a \
"${@}"
}