This commit is contained in:
Marc Beninca 2024-11-19 09:17:14 +01:00
parent bbcbcf28a2
commit 46704e9e37
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
29 changed files with 265 additions and 265 deletions

View file

@ -1,94 +1,94 @@
# show package information # show package information
acl() { sh_a__apt_cache_list "${@}"; } acl() { sa__apt_cache_list "${@}"; }
sh_a__apt_cache_list() { sa__apt_cache_list() {
apt-cache \ apt-cache \
show \ show \
"${@}" "${@}"
} }
# package versions policy # package versions policy
acp() { sh_a__apt_cache_policy "${@}"; } acp() { sa__apt_cache_policy "${@}"; }
sh_a__apt_cache_policy() { sa__apt_cache_policy() {
apt-cache \ apt-cache \
policy \ policy \
"${@}" "${@}"
} }
# search package # search package
acs() { sh_a__apt_cache_search "${@}"; } acs() { sa__apt_cache_search "${@}"; }
sh_a__apt_cache_search() { sa__apt_cache_search() {
apt-cache \ apt-cache \
search \ search \
"${@}" "${@}"
} }
# #
agap() { sh_a__apt_get_auto_purge "${@}"; } agap() { sa__apt_get_auto_purge "${@}"; }
sh_a__apt_get_auto_purge() { sa__apt_get_auto_purge() {
apt-get \ apt-get \
autopurge \ autopurge \
"${@}" "${@}"
} }
# #
agar() { sh_a__apt_get_auto_remove "${@}"; } agar() { sa__apt_get_auto_remove "${@}"; }
sh_a__apt_get_auto_remove() { sa__apt_get_auto_remove() {
apt-get \ apt-get \
autoremove \ autoremove \
"${@}" "${@}"
} }
# clean packages cache # clean packages cache
agc() { sh_a__apt_get_clean "${@}"; } agc() { sa__apt_get_clean "${@}"; }
sh_a__apt_get_clean() { sa__apt_get_clean() {
apt-get \ apt-get \
clean \ clean \
"${@}" "${@}"
} }
# upgrade allowing package installation or removal # upgrade allowing package installation or removal
agfu() { sh_a__apt_get_full_upgrade "${@}"; } agfu() { sa__apt_get_full_upgrade "${@}"; }
sh_a__apt_get_full_upgrade() { sa__apt_get_full_upgrade() {
apt-get \ apt-get \
full-upgrade \ full-upgrade \
"${@}" "${@}"
} }
# install packages # install packages
agi() { sh_a__apt_get_install "${@}"; } agi() { sa__apt_get_install "${@}"; }
sh_a__apt_get_install() { sa__apt_get_install() {
apt-get \ apt-get \
install \ install \
"${@}" "${@}"
} }
# #
agp() { sh_a__apt_get_purge "${@}"; } agp() { sa__apt_get_purge "${@}"; }
sh_a__apt_get_purge() { sa__apt_get_purge() {
apt-get \ apt-get \
purge \ purge \
"${@}" "${@}"
} }
# #
agr() { sh_a__apt_get_remove "${@}"; } agr() { sa__apt_get_remove "${@}"; }
sh_a__apt_get_remove() { sa__apt_get_remove() {
apt-get \ apt-get \
remove \ remove \
"${@}" "${@}"
} }
# update packages catalog # update packages catalog
agud() { sh_a__apt_get_up_date "${@}"; } agud() { sa__apt_get_up_date "${@}"; }
sh_a__apt_get_up_date() { sa__apt_get_up_date() {
apt-get \ apt-get \
update \ update \
"${@}" "${@}"
} }
# upgrade forbidding package installation or removal # upgrade forbidding package installation or removal
agug() { sh_a__apt_get_up_grade "${@}"; } agug() { sa__apt_get_up_grade "${@}"; }
sh_a__apt_get_up_grade() { sa__apt_get_up_grade() {
apt-get \ apt-get \
upgrade \ upgrade \
"${@}" "${@}"

View file

@ -1,5 +1,5 @@
bat() { sh_a__b_a_t "${@}"; } bat() { sa__b_a_t "${@}"; }
sh_a__b_a_t() { sa__b_a_t() {
batcat \ batcat \
"${@}" "${@}"
} }

View file

@ -1,13 +1,13 @@
bfdf() { sh_a__btrfs_filesystem_d_f "${@}"; } bfdf() { sa__btrfs_filesystem_d_f "${@}"; }
sh_a__btrfs_filesystem_d_f() { sa__btrfs_filesystem_d_f() {
btrfs \ btrfs \
filesystem \ filesystem \
df \ df \
"${@}" "${@}"
} }
bfdu() { sh_a__btrfs_filesystem_d_u "${@}"; } bfdu() { sa__btrfs_filesystem_d_u "${@}"; }
sh_a__btrfs_filesystem_d_u() { sa__btrfs_filesystem_d_u() {
btrfs \ btrfs \
filesystem \ filesystem \
du \ du \
@ -15,40 +15,40 @@ sh_a__btrfs_filesystem_d_u() {
"${@}" "${@}"
} }
bfu() { sh_a__btrfs_filesystem_usage "${@}"; } bfu() { sa__btrfs_filesystem_usage "${@}"; }
sh_a__btrfs_filesystem_usage() { sa__btrfs_filesystem_usage() {
btrfs \ btrfs \
filesystem \ filesystem \
usage \ usage \
"${@}" "${@}"
} }
bpg() { sh_a__btrfs_property_get "${@}"; } bpg() { sa__btrfs_property_get "${@}"; }
sh_a__btrfs_property_get() { sa__btrfs_property_get() {
btrfs \ btrfs \
property \ property \
get \ get \
"${@}" "${@}"
} }
bsc() { sh_a__btrfs_subvolume_create "${@}"; } bsc() { sa__btrfs_subvolume_create "${@}"; }
sh_a__btrfs_subvolume_create() { sa__btrfs_subvolume_create() {
btrfs \ btrfs \
subvolume \ subvolume \
create \ create \
"${@}" "${@}"
} }
bsd() { sh_a__btrfs_subvolume_delete "${@}"; } bsd() { sa__btrfs_subvolume_delete "${@}"; }
sh_a__btrfs_subvolume_delete() { sa__btrfs_subvolume_delete() {
btrfs \ btrfs \
subvolume \ subvolume \
delete \ delete \
"${@}" "${@}"
} }
bsl() { sh_a__btrfs_subvolume_list "${@}"; } bsl() { sa__btrfs_subvolume_list "${@}"; }
sh_a__btrfs_subvolume_list() { sa__btrfs_subvolume_list() {
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
btrfs subvolume list "${1}" | btrfs subvolume list "${1}" |
cut --delimiter " " --fields 9 | cut --delimiter " " --fields 9 |
@ -56,16 +56,16 @@ sh_a__btrfs_subvolume_list() {
fi fi
} }
bss() { sh_a__btrfs_subvolume_snapshot "${@}"; } bss() { sa__btrfs_subvolume_snapshot "${@}"; }
sh_a__btrfs_subvolume_snapshot() { sa__btrfs_subvolume_snapshot() {
btrfs \ btrfs \
subvolume \ subvolume \
snapshot \ snapshot \
"${@}" "${@}"
} }
bssr() { sh_a__btrfs_subvolume_snapshot_r "${@}"; } bssr() { sa__btrfs_subvolume_snapshot_r "${@}"; }
sh_a__btrfs_subvolume_snapshot_r() { sa__btrfs_subvolume_snapshot_r() {
btrfs \ btrfs \
subvolume \ subvolume \
snapshot -r \ snapshot -r \

View file

@ -1,25 +1,25 @@
bb() { sh_a__byo_bu "${@}"; } bb() { sa__byo_bu "${@}"; }
sh_a__byo_bu() { sa__byo_bu() {
byobu \ byobu \
"${@}" "${@}"
} }
bba() { sh_a__byo_bu_attach "${@}"; } bba() { sa__byo_bu_attach "${@}"; }
sh_a__byo_bu_attach() { sa__byo_bu_attach() {
byobu \ byobu \
attach-session \ attach-session \
"${@}" "${@}"
} }
bbl() { sh_a__byo_bu_ls "${@}"; } bbl() { sa__byo_bu_ls "${@}"; }
sh_a__byo_bu_ls() { sa__byo_bu_ls() {
byobu \ byobu \
ls \ ls \
"${@}" "${@}"
} }
bbnd() { sh_a__byo_bu_new_detach "${@}"; } bbnd() { sa__byo_bu_new_detach "${@}"; }
sh_a__byo_bu_new_detach() { sa__byo_bu_new_detach() {
byobu \ byobu \
new-session \ new-session \
-d \ -d \

View file

@ -1,14 +1,14 @@
# change mode to directory # change mode to directory
cmd() { sh_a__change_mode_directory "${@}"; } cmd() { sa__change_mode_directory "${@}"; }
sh_a__change_mode_directory() { sa__change_mode_directory() {
chmod \ chmod \
"755" \ "755" \
"${@}" "${@}"
} }
# change mode to file # change mode to file
cmf() { sh_a__change_mode_file "${@}"; } cmf() { sa__change_mode_file "${@}"; }
sh_a__change_mode_file() { sa__change_mode_file() {
chmod \ chmod \
"644" \ "644" \
"${@}" "${@}"

View file

@ -1,14 +1,14 @@
# change owner to root # change owner to root
cor() { sh_a__change_owner_root "${@}"; } cor() { sa__change_owner_root "${@}"; }
sh_a__change_owner_root() { sa__change_owner_root() {
chown \ chown \
"0:0" \ "0:0" \
"${@}" "${@}"
} }
# change owner to user # change owner to user
cou() { sh_a__change_owner_user "${@}"; } cou() { sa__change_owner_user "${@}"; }
sh_a__change_owner_user() { sa__change_owner_user() {
chown \ chown \
"1000:1000" \ "1000:1000" \
"${@}" "${@}"

View file

@ -1,6 +1,6 @@
# clear terminal # clear terminal
c() { sh_a__clear "${@}"; } c() { sa__clear "${@}"; }
sh_a__clear() { sa__clear() {
clear \ clear \
"${@}" "${@}"
} }

View file

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

View file

@ -1,5 +1,5 @@
em() { sh_a__e_macs "${@}"; } em() { sa__e_macs "${@}"; }
sh_a__e_macs() { sa__e_macs() {
emacs \ emacs \
"${@}" "${@}"
} }

View file

@ -1,5 +1,5 @@
ev() { sh_a__e_vince "${@}"; } ev() { sa__e_vince "${@}"; }
sh_a__e_vince() { sa__e_vince() {
evince \ evince \
"${@}" "${@}"
} }

View file

@ -8,16 +8,16 @@ C %C(blue)%cn %ce
%B" %B"
# add to index # add to index
ga() { sh_a__git_add "${@}"; } ga() { sa__git_add "${@}"; }
sh_a__git_add() { sa__git_add() {
git \ git \
add \ add \
"${@}" "${@}"
} }
# add all to index # add all to index
gaa() { sh_a__git_add_all "${@}"; } gaa() { sa__git_add_all "${@}"; }
sh_a__git_add_all() { sa__git_add_all() {
git \ git \
add \ add \
--all \ --all \
@ -25,8 +25,8 @@ sh_a__git_add_all() {
} }
# add parts of all to index # add parts of all to index
gaap() { sh_a__git_add_all_patch "${@}"; } gaap() { sa__git_add_all_patch "${@}"; }
sh_a__git_add_all_patch() { sa__git_add_all_patch() {
git \ git \
add \ add \
--all \ --all \
@ -35,8 +35,8 @@ sh_a__git_add_all_patch() {
} }
# add parts to index # add parts to index
gap() { sh_a__git_add_patch "${@}"; } gap() { sa__git_add_patch "${@}"; }
sh_a__git_add_patch() { sa__git_add_patch() {
git \ git \
add \ add \
--patch \ --patch \
@ -44,16 +44,16 @@ sh_a__git_add_patch() {
} }
# create a branch # create a branch
gb() { sh_a__git_branch "${@}"; } gb() { sa__git_branch "${@}"; }
sh_a__git_branch() { sa__git_branch() {
git \ git \
branch \ branch \
"${@}" "${@}"
} }
# delete a branch # delete a branch
gbd() { sh_a__git_branch_delete "${@}"; } gbd() { sa__git_branch_delete "${@}"; }
sh_a__git_branch_delete() { sa__git_branch_delete() {
git \ git \
branch \ branch \
--delete \ --delete \
@ -61,8 +61,8 @@ sh_a__git_branch_delete() {
} }
# force a branch deletion # force a branch deletion
gbdf() { sh_a__git_branch_delete_force "${@}"; } gbdf() { sa__git_branch_delete_force "${@}"; }
sh_a__git_branch_delete_force() { sa__git_branch_delete_force() {
git \ git \
branch \ branch \
--delete \ --delete \
@ -71,8 +71,8 @@ sh_a__git_branch_delete_force() {
} }
# list branches # list branches
gbl() { sh_a__git_branch_list "${@}"; } gbl() { sa__git_branch_list "${@}"; }
sh_a__git_branch_list() { sa__git_branch_list() {
git \ git \
branch \ branch \
--all \ --all \
@ -83,8 +83,8 @@ sh_a__git_branch_list() {
} }
# set the link to a remote branch from a local branch # set the link to a remote branch from a local branch
gbsu() { sh_a__git_branch_set_upstream "${@}"; } gbsu() { sa__git_branch_set_upstream "${@}"; }
sh_a__git_branch_set_upstream() { sa__git_branch_set_upstream() {
git \ git \
branch \ branch \
--set-upstream-to \ --set-upstream-to \
@ -92,16 +92,16 @@ sh_a__git_branch_set_upstream() {
} }
# switch to a branch or checkout file(s) from a commit # switch to a branch or checkout file(s) from a commit
gc() { sh_a__git_checkout "${@}"; } gc() { sa__git_checkout "${@}"; }
sh_a__git_checkout() { sa__git_checkout() {
git \ git \
checkout \ checkout \
"${@}" "${@}"
} }
# checkout an orphan branch # checkout an orphan branch
gco() { sh_a__git_checkout_orphan "${@}"; } gco() { sa__git_checkout_orphan "${@}"; }
sh_a__git_checkout_orphan() { sa__git_checkout_orphan() {
git \ git \
checkout \ checkout \
--orphan \ --orphan \
@ -109,16 +109,16 @@ sh_a__git_checkout_orphan() {
} }
# pick a commit # pick a commit
gcp() { sh_a__git_cherry_pick "${@}"; } gcp() { sa__git_cherry_pick "${@}"; }
sh_a__git_cherry_pick() { sa__git_cherry_pick() {
git \ git \
cherry-pick \ cherry-pick \
"${@}" "${@}"
} }
# abort the commit pick # abort the commit pick
gcpa() { sh_a__git_cherry_pick_abort "${@}"; } gcpa() { sa__git_cherry_pick_abort "${@}"; }
sh_a__git_cherry_pick_abort() { sa__git_cherry_pick_abort() {
git \ git \
cherry-pick \ cherry-pick \
--abort \ --abort \
@ -126,8 +126,8 @@ sh_a__git_cherry_pick_abort() {
} }
# continue the commit pick # continue the commit pick
gcpc() { sh_a__git_cherry_pick_continue "${@}"; } gcpc() { sa__git_cherry_pick_continue "${@}"; }
sh_a__git_cherry_pick_continue() { sa__git_cherry_pick_continue() {
git \ git \
cherry-pick \ cherry-pick \
--continue \ --continue \
@ -135,8 +135,8 @@ sh_a__git_cherry_pick_continue() {
} }
# clean untracked files # clean untracked files
gcf() { sh_a__git_clean_force "${@}"; } gcf() { sa__git_clean_force "${@}"; }
sh_a__git_clean_force() { sa__git_clean_force() {
git \ git \
clean \ clean \
-d \ -d \
@ -145,8 +145,8 @@ sh_a__git_clean_force() {
} }
# redo the last commit with a different message # redo the last commit with a different message
gcam() { sh_a__git_commit_amend_message "${@}"; } gcam() { sa__git_commit_amend_message "${@}"; }
sh_a__git_commit_amend_message() { sa__git_commit_amend_message() {
git \ git \
commit \ commit \
--amend \ --amend \
@ -155,8 +155,8 @@ sh_a__git_commit_amend_message() {
} }
# make a root commit # make a root commit
gcem() { sh_a__git_commit_empty_message "${@}"; } gcem() { sa__git_commit_empty_message "${@}"; }
sh_a__git_commit_empty_message() { sa__git_commit_empty_message() {
git \ git \
commit \ commit \
--allow-empty \ --allow-empty \
@ -166,8 +166,8 @@ sh_a__git_commit_empty_message() {
} }
# commit the index # commit the index
gcm() { sh_a__git_commit_message "${@}"; } gcm() { sa__git_commit_message "${@}"; }
sh_a__git_commit_message() { sa__git_commit_message() {
git \ git \
commit \ commit \
--message \ --message \
@ -175,8 +175,8 @@ sh_a__git_commit_message() {
} }
# configure the user email # configure the user email
gcue() { sh_a__git_config_user_email "${@}"; } gcue() { sa__git_config_user_email "${@}"; }
sh_a__git_config_user_email() { sa__git_config_user_email() {
git \ git \
config \ config \
"user.email" \ "user.email" \
@ -184,8 +184,8 @@ sh_a__git_config_user_email() {
} }
# configure the user name # configure the user name
gcun() { sh_a__git_config_user_name "${@}"; } gcun() { sa__git_config_user_name "${@}"; }
sh_a__git_config_user_name() { sa__git_config_user_name() {
git \ git \
config \ config \
"user.name" \ "user.name" \
@ -193,16 +193,16 @@ sh_a__git_config_user_name() {
} }
# differences from last or between commits # differences from last or between commits
gd() { sh_a__git_diff "${@}"; } gd() { sa__git_diff "${@}"; }
sh_a__git_diff() { sa__git_diff() {
git \ git \
diff \ diff \
"${@}" "${@}"
} }
# display what is indexed in cache # display what is indexed in cache
gdc() { sh_a__git_diff_cached "${@}"; } gdc() { sa__git_diff_cached "${@}"; }
sh_a__git_diff_cached() { sa__git_diff_cached() {
git \ git \
diff \ diff \
--cached \ --cached \
@ -210,8 +210,8 @@ sh_a__git_diff_cached() {
} }
# indexed character-level differences # indexed character-level differences
gdcw() { sh_a__git_diff_cached_word "${@}"; } gdcw() { sa__git_diff_cached_word "${@}"; }
sh_a__git_diff_cached_word() { sa__git_diff_cached_word() {
git \ git \
diff \ diff \
--cached \ --cached \
@ -220,8 +220,8 @@ sh_a__git_diff_cached_word() {
} }
# differences via external tool # differences via external tool
gdt() { sh_a__git_diff_tool "${@}"; } gdt() { sa__git_diff_tool "${@}"; }
sh_a__git_diff_tool() { sa__git_diff_tool() {
git \ git \
difftool \ difftool \
--dir-diff \ --dir-diff \
@ -229,8 +229,8 @@ sh_a__git_diff_tool() {
} }
# character-level differences # character-level differences
gdw() { sh_a__git_diff_word "${@}"; } gdw() { sa__git_diff_word "${@}"; }
sh_a__git_diff_word() { sa__git_diff_word() {
git \ git \
diff \ diff \
--word-diff-regex "." \ --word-diff-regex "." \
@ -238,8 +238,8 @@ sh_a__git_diff_word() {
} }
# fetch from the remote repository # fetch from the remote repository
gf() { sh_a__git_fetch "${@}"; } gf() { sa__git_fetch "${@}"; }
sh_a__git_fetch() { sa__git_fetch() {
git \ git \
fetch \ fetch \
--tags \ --tags \
@ -248,16 +248,16 @@ sh_a__git_fetch() {
} }
# fetch from remote repository and prune local orphan branches # fetch from remote repository and prune local orphan branches
gfp() { sh_a__git_fetch_prune "${@}"; } gfp() { sa__git_fetch_prune "${@}"; }
sh_a__git_fetch_prune() { sa__git_fetch_prune() {
sh_a__git_fetch \ sa__git_fetch \
--prune \ --prune \
"${@}" "${@}"
} }
# garbage collect all orphan commits # garbage collect all orphan commits
ggc() { sh_a__git_garbage_collect "${@}"; } ggc() { sa__git_garbage_collect "${@}"; }
sh_a__git_garbage_collect() { sa__git_garbage_collect() {
git \ git \
reflog \ reflog \
expire \ expire \
@ -270,16 +270,16 @@ sh_a__git_garbage_collect() {
} }
# initialize a new repository # initialize a new repository
gi() { sh_a__git_init "${@}"; } gi() { sa__git_init "${@}"; }
sh_a__git_init() { sa__git_init() {
git \ git \
init \ init \
"${@}" "${@}"
} }
# initialize a new bare repository # initialize a new bare repository
gib() { sh_a__git_init_bare "${@}"; } gib() { sa__git_init_bare "${@}"; }
sh_a__git_init_bare() { sa__git_init_bare() {
git \ git \
init \ init \
--bare \ --bare \
@ -287,8 +287,8 @@ sh_a__git_init_bare() {
} }
# log history # log history
gl() { sh_a__git_log "${@}"; } gl() { sa__git_log "${@}"; }
sh_a__git_log() { sa__git_log() {
git \ git \
log \ log \
--abbrev=8 \ --abbrev=8 \
@ -299,33 +299,33 @@ sh_a__git_log() {
} }
# log all history # log all history
gla() { sh_a__git_log_all "${@}"; } gla() { sa__git_log_all "${@}"; }
sh_a__git_log_all() { sa__git_log_all() {
sh_a__git_log \ sa__git_log \
--all \ --all \
"${@}" "${@}"
} }
# log all history with patches # log all history with patches
glap() { sh_a__git_log_all_patch "${@}"; } glap() { sa__git_log_all_patch "${@}"; }
sh_a__git_log_all_patch() { sa__git_log_all_patch() {
sh_a__git_log \ sa__git_log \
--all \ --all \
--patch \ --patch \
"${@}" "${@}"
} }
# log history with patches # log history with patches
glp() { sh_a__git_log_patch "${@}"; } glp() { sa__git_log_patch "${@}"; }
sh_a__git_log_patch() { sa__git_log_patch() {
sh_a__git_log \ sa__git_log \
--patch \ --patch \
"${@}" "${@}"
} }
# fast-forward merge to remote branch # fast-forward merge to remote branch
gm() { sh_a__git_merge "${@}"; } gm() { sa__git_merge "${@}"; }
sh_a__git_merge() { sa__git_merge() {
git \ git \
merge \ merge \
--ff-only \ --ff-only \
@ -333,8 +333,8 @@ sh_a__git_merge() {
} }
# abort the current merge commit # abort the current merge commit
gma() { sh_a__git_merge_abort "${@}"; } gma() { sa__git_merge_abort "${@}"; }
sh_a__git_merge_abort() { sa__git_merge_abort() {
git \ git \
merge \ merge \
--abort \ --abort \
@ -342,8 +342,8 @@ sh_a__git_merge_abort() {
} }
# do a merge commit # do a merge commit
gmc() { sh_a__git_merge_commit "${@}"; } gmc() { sa__git_merge_commit "${@}"; }
sh_a__git_merge_commit() { sa__git_merge_commit() {
git \ git \
merge \ merge \
--no-ff \ --no-ff \
@ -352,8 +352,8 @@ sh_a__git_merge_commit() {
} }
# squash a branch and index its modifications # squash a branch and index its modifications
gms() { sh_a__git_merge_squash "${@}"; } gms() { sa__git_merge_squash "${@}"; }
sh_a__git_merge_squash() { sa__git_merge_squash() {
git \ git \
merge \ merge \
--squash \ --squash \
@ -361,16 +361,16 @@ sh_a__git_merge_squash() {
} }
# merge via external tool # merge via external tool
gmt() { sh_a__git_merge_tool "${@}"; } gmt() { sa__git_merge_tool "${@}"; }
sh_a__git_merge_tool() { sa__git_merge_tool() {
git \ git \
mergetool \ mergetool \
"${@}" "${@}"
} }
# push to the remote repository # push to the remote repository
gp() { sh_a__git_push "${@}"; } gp() { sa__git_push "${@}"; }
sh_a__git_push() { sa__git_push() {
git \ git \
push \ push \
--tags \ --tags \
@ -379,8 +379,8 @@ sh_a__git_push() {
} }
# delete from the remote repository # delete from the remote repository
gpd() { sh_a__git_push_delete "${@}"; } gpd() { sa__git_push_delete "${@}"; }
sh_a__git_push_delete() { sa__git_push_delete() {
git \ git \
push \ push \
--delete \ --delete \
@ -388,24 +388,24 @@ sh_a__git_push_delete() {
} }
# force the push to the remote repository # force the push to the remote repository
gpf() { sh_a__git_push_force "${@}"; } gpf() { sa__git_push_force "${@}"; }
sh_a__git_push_force() { sa__git_push_force() {
sh_a__git_push \ sa__git_push \
--force \ --force \
"${@}" "${@}"
} }
# rebase current branch onto another # rebase current branch onto another
grb() { sh_a__git_re_base "${@}"; } grb() { sa__git_re_base "${@}"; }
sh_a__git_re_base() { sa__git_re_base() {
git \ git \
rebase \ rebase \
"${@}" "${@}"
} }
# abort current rebase # abort current rebase
grba() { sh_a__git_re_base_abort "${@}"; } grba() { sa__git_re_base_abort "${@}"; }
sh_a__git_re_base_abort() { sa__git_re_base_abort() {
git \ git \
rebase \ rebase \
--abort \ --abort \
@ -413,8 +413,8 @@ sh_a__git_re_base_abort() {
} }
# continue current rebase # continue current rebase
grbc() { sh_a__git_re_base_continue "${@}"; } grbc() { sa__git_re_base_continue "${@}"; }
sh_a__git_re_base_continue() { sa__git_re_base_continue() {
git \ git \
rebase \ rebase \
--continue \ --continue \
@ -422,8 +422,8 @@ sh_a__git_re_base_continue() {
} }
# force rebase without fast-forward # force rebase without fast-forward
grbf() { sh_a__git_re_base_force "${@}"; } grbf() { sa__git_re_base_force "${@}"; }
sh_a__git_re_base_force() { sa__git_re_base_force() {
git \ git \
rebase \ rebase \
--force-rebase \ --force-rebase \
@ -431,8 +431,8 @@ sh_a__git_re_base_force() {
} }
# rebase interactively # rebase interactively
grbi() { sh_a__git_re_base_interactive "${@}"; } grbi() { sa__git_re_base_interactive "${@}"; }
sh_a__git_re_base_interactive() { sa__git_re_base_interactive() {
git \ git \
rebase \ rebase \
--interactive \ --interactive \
@ -440,8 +440,8 @@ sh_a__git_re_base_interactive() {
} }
# add a new remote repository # add a new remote repository
grma() { sh_a__git_re_mote_add "${@}"; } grma() { sa__git_re_mote_add "${@}"; }
sh_a__git_re_mote_add() { sa__git_re_mote_add() {
git \ git \
remote \ remote \
add \ add \
@ -449,8 +449,8 @@ sh_a__git_re_mote_add() {
} }
# list remote repositories # list remote repositories
grml() { sh_a__git_re_mote_list "${@}"; } grml() { sa__git_re_mote_list "${@}"; }
sh_a__git_re_mote_list() { sa__git_re_mote_list() {
git \ git \
remote \ remote \
--verbose \ --verbose \
@ -458,8 +458,8 @@ sh_a__git_re_mote_list() {
} }
# set the location of a remote repository # set the location of a remote repository
grmsu() { sh_a__git_re_mote_set_upstream "${@}"; } grmsu() { sa__git_re_mote_set_upstream "${@}"; }
sh_a__git_re_mote_set_upstream() { sa__git_re_mote_set_upstream() {
git \ git \
remote \ remote \
set-url \ set-url \
@ -467,8 +467,8 @@ sh_a__git_re_mote_set_upstream() {
} }
# show connection to a remote repository # show connection to a remote repository
grms() { sh_a__git_re_mote_show "${@}"; } grms() { sa__git_re_mote_show "${@}"; }
sh_a__git_re_mote_show() { sa__git_re_mote_show() {
git \ git \
remote \ remote \
show \ show \
@ -476,24 +476,24 @@ sh_a__git_re_mote_show() {
} }
# remove and add removal to index # remove and add removal to index
grm() { sh_a__git_re_move "${@}"; } grm() { sa__git_re_move "${@}"; }
sh_a__git_re_move() { sa__git_re_move() {
git \ git \
rm \ rm \
"${@}" "${@}"
} }
# remove file(s) from index or move current branch pointer # remove file(s) from index or move current branch pointer
grs() { sh_a__git_re_set "${@}"; } grs() { sa__git_re_set "${@}"; }
sh_a__git_re_set() { sa__git_re_set() {
git \ git \
reset \ reset \
"${@}" "${@}"
} }
# wipe modifications or reset current branch to another commit # wipe modifications or reset current branch to another commit
grsh() { sh_a__git_re_set_hard "${@}"; } grsh() { sa__git_re_set_hard "${@}"; }
sh_a__git_re_set_hard() { sa__git_re_set_hard() {
git \ git \
reset \ reset \
--hard \ --hard \
@ -501,16 +501,16 @@ sh_a__git_re_set_hard() {
} }
# show a commit # show a commit
gsc() { sh_a__git_show_commit "${@}"; } gsc() { sa__git_show_commit "${@}"; }
sh_a__git_show_commit() { sa__git_show_commit() {
git \ git \
show \ show \
"${@}" "${@}"
} }
# current state of repository # current state of repository
gs() { sh_a__git_status "${@}"; } gs() { sa__git_status "${@}"; }
sh_a__git_status() { sa__git_status() {
git \ git \
status \ status \
--untracked-files="all" \ --untracked-files="all" \
@ -518,16 +518,16 @@ sh_a__git_status() {
} }
# tag a commit # tag a commit
gt() { sh_a__git_tag "${@}"; } gt() { sa__git_tag "${@}"; }
sh_a__git_tag() { sa__git_tag() {
git \ git \
tag \ tag \
"${@}" "${@}"
} }
# delete a tag # delete a tag
gtd() { sh_a__git_tag_delete "${@}"; } gtd() { sa__git_tag_delete "${@}"; }
sh_a__git_tag_delete() { sa__git_tag_delete() {
git \ git \
tag \ tag \
--delete \ --delete \

View file

@ -1,6 +1,6 @@
# grep from current directory with regex # grep from current directory with regex
g() { sh_a__grep "${@}"; } g() { sa__grep "${@}"; }
sh_a__grep() { sa__grep() {
grep \ grep \
--directories "recurse" \ --directories "recurse" \
--line-number \ --line-number \

View file

@ -1,13 +1,13 @@
# kill a process by id # kill a process by id
k() { sh_a__kill "${@}"; } k() { sa__kill "${@}"; }
sh_a__kill() { sa__kill() {
kill \ kill \
"${@}" "${@}"
} }
# force kill a process by id # force kill a process by id
kf() { sh_a__kill_force "${@}"; } kf() { sa__kill_force "${@}"; }
sh_a__kill_force() { sa__kill_force() {
kill \ kill \
-9 \ -9 \
"${@}" "${@}"

View file

@ -1,13 +1,13 @@
# kill all instances of a process by name # kill all instances of a process by name
ka() { sh_a__kill_all "${@}"; } ka() { sa__kill_all "${@}"; }
sh_a__kill_all() { sa__kill_all() {
killall \ killall \
"${@}" "${@}"
} }
# force kill all instances of a process by name # force kill all instances of a process by name
kaf() { sh_a__kill_all_force "${@}"; } kaf() { sa__kill_all_force "${@}"; }
sh_a__kill_all_force() { sa__kill_all_force() {
killall \ killall \
-9 \ -9 \
"${@}" "${@}"

View file

@ -3,8 +3,8 @@ di=0;94\
" "
# list current directory’s entries # list current directory’s entries
l() { sh_a__ls "${@}"; } l() { sa__ls "${@}"; }
sh_a__ls() { sa__ls() {
ls \ ls \
--all \ --all \
--color \ --color \
@ -15,17 +15,17 @@ sh_a__ls() {
} }
# list timestamps # list timestamps
lt() { sh_a__ls_time "${@}"; } lt() { sa__ls_time "${@}"; }
sh_a__ls_time() { sa__ls_time() {
sh_a__ls \ sa__ls \
--time-style "+%Y%m%d-%H%M%S%-:::z" \ --time-style "+%Y%m%d-%H%M%S%-:::z" \
"${@}" "${@}"
} }
# list timestamps recent last # list timestamps recent last
ltr() { sh_a__ls_time_reverse "${@}"; } ltr() { sa__ls_time_reverse "${@}"; }
sh_a__ls_time_reverse() { sa__ls_time_reverse() {
sh_a__ls_time \ sa__ls_time \
--reverse \ --reverse \
-t \ -t \
"${@}" "${@}"

View file

@ -1,7 +1,7 @@
# list block devices # list block devices
lb() { sh_a__list_block "${@}"; } lb() { sa__list_block "${@}"; }
sh_a__list_block() { sa__list_block() {
sh_a__list_block_output \ sa__list_block_output \
"SIZE" \ "SIZE" \
"TYPE" \ "TYPE" \
"FSTYPE" \ "FSTYPE" \
@ -11,21 +11,21 @@ sh_a__list_block() {
} }
# base arguments # base arguments
lbne() { sh_a__list_block_no_empty "${@}"; } lbne() { sa__list_block_no_empty "${@}"; }
sh_a__list_block_no_empty() { sa__list_block_no_empty() {
lsblk \ lsblk \
--noempty \ --noempty \
"${@}" "${@}"
} }
# output arguments # output arguments
lbo() { sh_a__list_block_output "${@}"; } lbo() { sa__list_block_output "${@}"; }
sh_a__list_block_output() { sa__list_block_output() {
local argument local argument
local arguments="NAME" local arguments="NAME"
for argument in "${@}"; do for argument in "${@}"; do
arguments="${arguments},${argument}" arguments="${arguments},${argument}"
done done
sh_a__list_block_no_empty \ sa__list_block_no_empty \
--output "${arguments}" --output "${arguments}"
} }

View file

@ -1,13 +1,13 @@
# make a directory # make a directory
md() { sh_a__make_directory "${@}"; } md() { sa__make_directory "${@}"; }
sh_a__make_directory() { sa__make_directory() {
mkdir \ mkdir \
"${@}" "${@}"
} }
# make a directory after making its parents # make a directory after making its parents
mdp() { sh_a__make_directory_parents "${@}"; } mdp() { sa__make_directory_parents "${@}"; }
sh_a__make_directory_parents() { sa__make_directory_parents() {
mkdir \ mkdir \
--parents \ --parents \
"${@}" "${@}"

View file

@ -1,5 +1,5 @@
m() { sh_a__mount "${@}"; } m() { sa__mount "${@}"; }
sh_a__mount() { sa__mount() {
mount \ mount \
"${@}" "${@}"
} }

View file

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

View file

@ -1,5 +1,5 @@
nn() { sh_a__na_no "${@}"; } nn() { sa__na_no "${@}"; }
sh_a__na_no() { sa__na_no() {
nano \ nano \
"${@}" "${@}"
} }

View file

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

View file

@ -1,13 +1,13 @@
# display pass entry’s content # display pass entry’s content
p() { sh_a__pass "${@}"; } p() { sa__pass "${@}"; }
sh_a__pass() { sa__pass() {
pass \ pass \
"${@}" "${@}"
} }
# copy passphrase into clipboard # copy passphrase into clipboard
pc() { sh_a__pass_clip "${@}"; } pc() { sa__pass_clip "${@}"; }
sh_a__pass_clip() { sa__pass_clip() {
pass \ pass \
--clip \ --clip \
"${@}" "${@}"

View file

@ -1,6 +1,6 @@
# look for a string in processes names # look for a string in processes names
pg() { sh_a__proc_grep "${@}"; } pg() { sa__proc_grep "${@}"; }
sh_a__proc_grep() { sa__proc_grep() {
pgrep \ pgrep \
--list-full \ --list-full \
"${@}" "${@}"

View file

@ -1,6 +1,6 @@
# generate passwords # generate passwords
pwg() { sh_a__pass_word_gen "${@}"; } pwg() { sa__pass_word_gen "${@}"; }
sh_a__pass_word_gen() { sa__pass_word_gen() {
pwgen \ pwgen \
-1 \ -1 \
--num-passwords 1048576 \ --num-passwords 1048576 \
@ -9,9 +9,9 @@ sh_a__pass_word_gen() {
} }
# generate passwords with symbols # generate passwords with symbols
pwgs() { sh_a__pass_word_gen_symbols "${@}"; } pwgs() { sa__pass_word_gen_symbols "${@}"; }
sh_a__pass_word_gen_symbols() { sa__pass_word_gen_symbols() {
sh_a__pass_word_gen \ sa__pass_word_gen \
--symbols \ --symbols \
"${@}" "${@}"
} }

View file

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

View file

@ -1,6 +1,6 @@
# synchronize # synchronize
rs() { sh_a__r_sync "${@}"; } rs() { sa__r_sync "${@}"; }
sh_a__r_sync() { sa__r_sync() {
rsync \ rsync \
--archive \ --archive \
--no-inc-recursive \ --no-inc-recursive \
@ -11,17 +11,17 @@ sh_a__r_sync() {
} }
# synchronize and delete after # synchronize and delete after
rsda() { sh_a__r_sync_delete_after "${@}"; } rsda() { sa__r_sync_delete_after "${@}"; }
sh_a__r_sync_delete_after() { sa__r_sync_delete_after() {
sh_a__r_sync \ sa__r_sync \
--delete-after \ --delete-after \
"${@}" "${@}"
} }
# synchronize and delete before # synchronize and delete before
rsdb() { sh_a__r_sync_delete_before "${@}"; } rsdb() { sa__r_sync_delete_before "${@}"; }
sh_a__r_sync_delete_before() { sa__r_sync_delete_before() {
sh_a__r_sync \ sa__r_sync \
--delete-before \ --delete-before \
"${@}" "${@}"
} }

View file

@ -1,30 +1,30 @@
tc() { sh_a__tar_create "${@}"; } tc() { sa__tar_create "${@}"; }
sh_a__tar_create() { sa__tar_create() {
sh_a__tar_verbose \ sa__tar_verbose \
--create \ --create \
--auto-compress \ --auto-compress \
--file \ --file \
"${@}" "${@}"
} }
tl() { sh_a__tar_list "${@}"; } tl() { sa__tar_list "${@}"; }
sh_a__tar_list() { sa__tar_list() {
sh_a__tar_verbose \ sa__tar_verbose \
--list \ --list \
--file \ --file \
"${@}" "${@}"
} }
tv() { sh_a__tar_verbose "${@}"; } tv() { sa__tar_verbose "${@}"; }
sh_a__tar_verbose() { sa__tar_verbose() {
tar \ tar \
--verbose \ --verbose \
"${@}" "${@}"
} }
tx() { sh_a__tar_xtract "${@}"; } tx() { sa__tar_xtract "${@}"; }
sh_a__tar_xtract() { sa__tar_xtract() {
sh_a__tar_verbose \ sa__tar_verbose \
--extract \ --extract \
--file \ --file \
"${@}" "${@}"

View file

@ -1,5 +1,5 @@
tm() { sh_a__t_mux "${@}"; } tm() { sa__t_mux "${@}"; }
sh_a__t_mux() { sa__t_mux() {
tmux \ tmux \
"${@}" "${@}"
} }

View file

@ -1,11 +1,11 @@
t() { sh_a__tree "${@}"; } t() { sa__tree "${@}"; }
sh_a__tree() { sa__tree() {
tree \ tree \
"${@}" "${@}"
} }
ta() { sh_a__tree_all "${@}"; } ta() { sa__tree_all "${@}"; }
sh_a__tree_all() { sa__tree_all() {
tree \ tree \
-a \ -a \
"${@}" "${@}"