diff --git a/sh/alias/apt.sh b/sh/alias/apt.sh index 1af6d78..0f3294e 100644 --- a/sh/alias/apt.sh +++ b/sh/alias/apt.sh @@ -1,94 +1,94 @@ # show package information -acl() { sa__apt_cache_list "${@}"; } -sa__apt_cache_list() { +acl() { a__apt_cache_list "${@}"; } +a__apt_cache_list() { apt-cache \ show \ "${@}" } # package versions policy -acp() { sa__apt_cache_policy "${@}"; } -sa__apt_cache_policy() { +acp() { a__apt_cache_policy "${@}"; } +a__apt_cache_policy() { apt-cache \ policy \ "${@}" } # search package -acs() { sa__apt_cache_search "${@}"; } -sa__apt_cache_search() { +acs() { a__apt_cache_search "${@}"; } +a__apt_cache_search() { apt-cache \ search \ "${@}" } # -agap() { sa__apt_get_auto_purge "${@}"; } -sa__apt_get_auto_purge() { +agap() { a__apt_get_auto_purge "${@}"; } +a__apt_get_auto_purge() { apt-get \ autopurge \ "${@}" } # -agar() { sa__apt_get_auto_remove "${@}"; } -sa__apt_get_auto_remove() { +agar() { a__apt_get_auto_remove "${@}"; } +a__apt_get_auto_remove() { apt-get \ autoremove \ "${@}" } # clean packages cache -agc() { sa__apt_get_clean "${@}"; } -sa__apt_get_clean() { +agc() { a__apt_get_clean "${@}"; } +a__apt_get_clean() { apt-get \ clean \ "${@}" } # upgrade allowing package installation or removal -agfu() { sa__apt_get_full_upgrade "${@}"; } -sa__apt_get_full_upgrade() { +agfu() { a__apt_get_full_upgrade "${@}"; } +a__apt_get_full_upgrade() { apt-get \ full-upgrade \ "${@}" } # install packages -agi() { sa__apt_get_install "${@}"; } -sa__apt_get_install() { +agi() { a__apt_get_install "${@}"; } +a__apt_get_install() { apt-get \ install \ "${@}" } # -agp() { sa__apt_get_purge "${@}"; } -sa__apt_get_purge() { +agp() { a__apt_get_purge "${@}"; } +a__apt_get_purge() { apt-get \ purge \ "${@}" } # -agr() { sa__apt_get_remove "${@}"; } -sa__apt_get_remove() { +agr() { a__apt_get_remove "${@}"; } +a__apt_get_remove() { apt-get \ remove \ "${@}" } # update packages catalog -agud() { sa__apt_get_up_date "${@}"; } -sa__apt_get_up_date() { +agud() { a__apt_get_up_date "${@}"; } +a__apt_get_up_date() { apt-get \ update \ "${@}" } # upgrade forbidding package installation or removal -agug() { sa__apt_get_up_grade "${@}"; } -sa__apt_get_up_grade() { +agug() { a__apt_get_up_grade "${@}"; } +a__apt_get_up_grade() { apt-get \ upgrade \ "${@}" diff --git a/sh/alias/batcat.sh b/sh/alias/batcat.sh index 9af2774..99d8373 100644 --- a/sh/alias/batcat.sh +++ b/sh/alias/batcat.sh @@ -1,5 +1,5 @@ -b() { sa__bat "${@}"; } -sa__bat() { +b() { a__bat "${@}"; } +a__bat() { batcat \ "${@}" } diff --git a/sh/alias/btrfs.sh b/sh/alias/btrfs.sh index eb48c14..0e4ba62 100644 --- a/sh/alias/btrfs.sh +++ b/sh/alias/btrfs.sh @@ -1,13 +1,13 @@ -bfdf() { sa__btrfs_filesystem_d_f "${@}"; } -sa__btrfs_filesystem_d_f() { +bfdf() { a__btrfs_filesystem_d_f "${@}"; } +a__btrfs_filesystem_d_f() { btrfs \ filesystem \ df \ "${@}" } -bfdu() { sa__btrfs_filesystem_d_u "${@}"; } -sa__btrfs_filesystem_d_u() { +bfdu() { a__btrfs_filesystem_d_u "${@}"; } +a__btrfs_filesystem_d_u() { btrfs \ filesystem \ du \ @@ -15,40 +15,40 @@ sa__btrfs_filesystem_d_u() { "${@}" } -bfu() { sa__btrfs_filesystem_usage "${@}"; } -sa__btrfs_filesystem_usage() { +bfu() { a__btrfs_filesystem_usage "${@}"; } +a__btrfs_filesystem_usage() { btrfs \ filesystem \ usage \ "${@}" } -bpg() { sa__btrfs_property_get "${@}"; } -sa__btrfs_property_get() { +bpg() { a__btrfs_property_get "${@}"; } +a__btrfs_property_get() { btrfs \ property \ get \ "${@}" } -bsc() { sa__btrfs_subvolume_create "${@}"; } -sa__btrfs_subvolume_create() { +bsc() { a__btrfs_subvolume_create "${@}"; } +a__btrfs_subvolume_create() { btrfs \ subvolume \ create \ "${@}" } -bsd() { sa__btrfs_subvolume_delete "${@}"; } -sa__btrfs_subvolume_delete() { +bsd() { a__btrfs_subvolume_delete "${@}"; } +a__btrfs_subvolume_delete() { btrfs \ subvolume \ delete \ "${@}" } -bsl() { sa__btrfs_subvolume_list "${@}"; } -sa__btrfs_subvolume_list() { +bsl() { a__btrfs_subvolume_list "${@}"; } +a__btrfs_subvolume_list() { if [ -n "${1}" ]; then btrfs subvolume list "${1}" | cut --delimiter " " --fields 9 | @@ -56,16 +56,16 @@ sa__btrfs_subvolume_list() { fi } -bss() { sa__btrfs_subvolume_snapshot "${@}"; } -sa__btrfs_subvolume_snapshot() { +bss() { a__btrfs_subvolume_snapshot "${@}"; } +a__btrfs_subvolume_snapshot() { btrfs \ subvolume \ snapshot \ "${@}" } -bssr() { sa__btrfs_subvolume_snapshot_r "${@}"; } -sa__btrfs_subvolume_snapshot_r() { +bssr() { a__btrfs_subvolume_snapshot_r "${@}"; } +a__btrfs_subvolume_snapshot_r() { btrfs \ subvolume \ snapshot -r \ diff --git a/sh/alias/byobu.sh b/sh/alias/byobu.sh index 6b66a77..0f5336e 100644 --- a/sh/alias/byobu.sh +++ b/sh/alias/byobu.sh @@ -1,25 +1,25 @@ -bb() { sa__byo_bu "${@}"; } -sa__byo_bu() { +bb() { a__byo_bu "${@}"; } +a__byo_bu() { byobu \ "${@}" } -bba() { sa__byo_bu_attach "${@}"; } -sa__byo_bu_attach() { +bba() { a__byo_bu_attach "${@}"; } +a__byo_bu_attach() { byobu \ attach-session \ "${@}" } -bbl() { sa__byo_bu_ls "${@}"; } -sa__byo_bu_ls() { +bbl() { a__byo_bu_ls "${@}"; } +a__byo_bu_ls() { byobu \ ls \ "${@}" } -bbnd() { sa__byo_bu_new_detach "${@}"; } -sa__byo_bu_new_detach() { +bbnd() { a__byo_bu_new_detach "${@}"; } +a__byo_bu_new_detach() { byobu \ new-session \ -d \ diff --git a/sh/alias/chmod.sh b/sh/alias/chmod.sh index 6a6e0e8..57ec74e 100644 --- a/sh/alias/chmod.sh +++ b/sh/alias/chmod.sh @@ -1,14 +1,14 @@ # change mode to directory -cmd() { sa__change_mode_directory "${@}"; } -sa__change_mode_directory() { +cmd() { a__change_mode_directory "${@}"; } +a__change_mode_directory() { chmod \ "755" \ "${@}" } # change mode to file -cmf() { sa__change_mode_file "${@}"; } -sa__change_mode_file() { +cmf() { a__change_mode_file "${@}"; } +a__change_mode_file() { chmod \ "644" \ "${@}" diff --git a/sh/alias/chown.sh b/sh/alias/chown.sh index 8c992d3..f4fa865 100644 --- a/sh/alias/chown.sh +++ b/sh/alias/chown.sh @@ -1,14 +1,14 @@ # change owner to root -cor() { sa__change_owner_root "${@}"; } -sa__change_owner_root() { +cor() { a__change_owner_root "${@}"; } +a__change_owner_root() { chown \ "0:0" \ "${@}" } # change owner to user -cou() { sa__change_owner_user "${@}"; } -sa__change_owner_user() { +cou() { a__change_owner_user "${@}"; } +a__change_owner_user() { chown \ "1000:1000" \ "${@}" diff --git a/sh/alias/clear.sh b/sh/alias/clear.sh index 542a260..ae32b30 100644 --- a/sh/alias/clear.sh +++ b/sh/alias/clear.sh @@ -1,6 +1,6 @@ # clear terminal -c() { sa__clear "${@}"; } -sa__clear() { +c() { a__clear "${@}"; } +a__clear() { clear \ "${@}" } diff --git a/sh/alias/cp.sh b/sh/alias/cp.sh index d8897c0..c9e7d6b 100644 --- a/sh/alias/cp.sh +++ b/sh/alias/cp.sh @@ -1,6 +1,6 @@ # copy interactively -cpi() { sa__co_py_interactive "${@}"; } -sa__co_py_interactive() { +cpi() { a__co_py_interactive "${@}"; } +a__co_py_interactive() { cp \ --interactive \ "${@}" diff --git a/sh/alias/emacs.sh b/sh/alias/emacs.sh index cc7e002..8e26878 100644 --- a/sh/alias/emacs.sh +++ b/sh/alias/emacs.sh @@ -1,5 +1,5 @@ -em() { sa__e_macs "${@}"; } -sa__e_macs() { +em() { a__e_macs "${@}"; } +a__e_macs() { emacs \ "${@}" } diff --git a/sh/alias/evince.sh b/sh/alias/evince.sh index 5d68ace..25ac069 100644 --- a/sh/alias/evince.sh +++ b/sh/alias/evince.sh @@ -1,5 +1,5 @@ -ev() { sa__e_vince "${@}"; } -sa__e_vince() { +ev() { a__e_vince "${@}"; } +a__e_vince() { evince \ "${@}" } diff --git a/sh/alias/git.sh b/sh/alias/git.sh index 5ce2f93..6400092 100644 --- a/sh/alias/git.sh +++ b/sh/alias/git.sh @@ -8,16 +8,16 @@ C %C(blue)%cn %ce %B" # add to index -ga() { sa__git_add "${@}"; } -sa__git_add() { +ga() { a__git_add "${@}"; } +a__git_add() { git \ add \ "${@}" } # add all to index -gaa() { sa__git_add_all "${@}"; } -sa__git_add_all() { +gaa() { a__git_add_all "${@}"; } +a__git_add_all() { git \ add \ --all \ @@ -25,8 +25,8 @@ sa__git_add_all() { } # add parts of all to index -gaap() { sa__git_add_all_patch "${@}"; } -sa__git_add_all_patch() { +gaap() { a__git_add_all_patch "${@}"; } +a__git_add_all_patch() { git \ add \ --all \ @@ -35,8 +35,8 @@ sa__git_add_all_patch() { } # add parts to index -gap() { sa__git_add_patch "${@}"; } -sa__git_add_patch() { +gap() { a__git_add_patch "${@}"; } +a__git_add_patch() { git \ add \ --patch \ @@ -44,16 +44,16 @@ sa__git_add_patch() { } # create a branch -gb() { sa__git_branch "${@}"; } -sa__git_branch() { +gb() { a__git_branch "${@}"; } +a__git_branch() { git \ branch \ "${@}" } # delete a branch -gbd() { sa__git_branch_delete "${@}"; } -sa__git_branch_delete() { +gbd() { a__git_branch_delete "${@}"; } +a__git_branch_delete() { git \ branch \ --delete \ @@ -61,8 +61,8 @@ sa__git_branch_delete() { } # force a branch deletion -gbdf() { sa__git_branch_delete_force "${@}"; } -sa__git_branch_delete_force() { +gbdf() { a__git_branch_delete_force "${@}"; } +a__git_branch_delete_force() { git \ branch \ --delete \ @@ -71,8 +71,8 @@ sa__git_branch_delete_force() { } # list branches -gbl() { sa__git_branch_list "${@}"; } -sa__git_branch_list() { +gbl() { a__git_branch_list "${@}"; } +a__git_branch_list() { git \ branch \ --all \ @@ -83,8 +83,8 @@ sa__git_branch_list() { } # set the link to a remote branch from a local branch -gbsu() { sa__git_branch_set_upstream "${@}"; } -sa__git_branch_set_upstream() { +gbsu() { a__git_branch_set_upstream "${@}"; } +a__git_branch_set_upstream() { git \ branch \ --set-upstream-to \ @@ -92,16 +92,16 @@ sa__git_branch_set_upstream() { } # switch to a branch or checkout file(s) from a commit -gc() { sa__git_checkout "${@}"; } -sa__git_checkout() { +gc() { a__git_checkout "${@}"; } +a__git_checkout() { git \ checkout \ "${@}" } # checkout an orphan branch -gco() { sa__git_checkout_orphan "${@}"; } -sa__git_checkout_orphan() { +gco() { a__git_checkout_orphan "${@}"; } +a__git_checkout_orphan() { git \ checkout \ --orphan \ @@ -109,16 +109,16 @@ sa__git_checkout_orphan() { } # pick a commit -gcp() { sa__git_cherry_pick "${@}"; } -sa__git_cherry_pick() { +gcp() { a__git_cherry_pick "${@}"; } +a__git_cherry_pick() { git \ cherry-pick \ "${@}" } # abort the commit pick -gcpa() { sa__git_cherry_pick_abort "${@}"; } -sa__git_cherry_pick_abort() { +gcpa() { a__git_cherry_pick_abort "${@}"; } +a__git_cherry_pick_abort() { git \ cherry-pick \ --abort \ @@ -126,8 +126,8 @@ sa__git_cherry_pick_abort() { } # continue the commit pick -gcpc() { sa__git_cherry_pick_continue "${@}"; } -sa__git_cherry_pick_continue() { +gcpc() { a__git_cherry_pick_continue "${@}"; } +a__git_cherry_pick_continue() { git \ cherry-pick \ --continue \ @@ -135,8 +135,8 @@ sa__git_cherry_pick_continue() { } # clean untracked files -gcf() { sa__git_clean_force "${@}"; } -sa__git_clean_force() { +gcf() { a__git_clean_force "${@}"; } +a__git_clean_force() { git \ clean \ -d \ @@ -145,8 +145,8 @@ sa__git_clean_force() { } # redo the last commit with a different message -gcam() { sa__git_commit_amend_message "${@}"; } -sa__git_commit_amend_message() { +gcam() { a__git_commit_amend_message "${@}"; } +a__git_commit_amend_message() { git \ commit \ --amend \ @@ -155,8 +155,8 @@ sa__git_commit_amend_message() { } # make a root commit -gcem() { sa__git_commit_empty_message "${@}"; } -sa__git_commit_empty_message() { +gcem() { a__git_commit_empty_message "${@}"; } +a__git_commit_empty_message() { git \ commit \ --allow-empty \ @@ -166,8 +166,8 @@ sa__git_commit_empty_message() { } # commit the index -gcm() { sa__git_commit_message "${@}"; } -sa__git_commit_message() { +gcm() { a__git_commit_message "${@}"; } +a__git_commit_message() { git \ commit \ --message \ @@ -175,8 +175,8 @@ sa__git_commit_message() { } # configure the user email -gcue() { sa__git_config_user_email "${@}"; } -sa__git_config_user_email() { +gcue() { a__git_config_user_email "${@}"; } +a__git_config_user_email() { git \ config \ "user.email" \ @@ -184,8 +184,8 @@ sa__git_config_user_email() { } # configure the user name -gcun() { sa__git_config_user_name "${@}"; } -sa__git_config_user_name() { +gcun() { a__git_config_user_name "${@}"; } +a__git_config_user_name() { git \ config \ "user.name" \ @@ -193,16 +193,16 @@ sa__git_config_user_name() { } # differences from last or between commits -gd() { sa__git_diff "${@}"; } -sa__git_diff() { +gd() { a__git_diff "${@}"; } +a__git_diff() { git \ diff \ "${@}" } # display what is indexed in cache -gdc() { sa__git_diff_cached "${@}"; } -sa__git_diff_cached() { +gdc() { a__git_diff_cached "${@}"; } +a__git_diff_cached() { git \ diff \ --cached \ @@ -210,8 +210,8 @@ sa__git_diff_cached() { } # indexed character-level differences -gdcw() { sa__git_diff_cached_word "${@}"; } -sa__git_diff_cached_word() { +gdcw() { a__git_diff_cached_word "${@}"; } +a__git_diff_cached_word() { git \ diff \ --cached \ @@ -220,8 +220,8 @@ sa__git_diff_cached_word() { } # differences via external tool -gdt() { sa__git_diff_tool "${@}"; } -sa__git_diff_tool() { +gdt() { a__git_diff_tool "${@}"; } +a__git_diff_tool() { git \ difftool \ --dir-diff \ @@ -229,8 +229,8 @@ sa__git_diff_tool() { } # character-level differences -gdw() { sa__git_diff_word "${@}"; } -sa__git_diff_word() { +gdw() { a__git_diff_word "${@}"; } +a__git_diff_word() { git \ diff \ --word-diff-regex "." \ @@ -238,8 +238,8 @@ sa__git_diff_word() { } # fetch from the remote repository -gf() { sa__git_fetch "${@}"; } -sa__git_fetch() { +gf() { a__git_fetch "${@}"; } +a__git_fetch() { git \ fetch \ --tags \ @@ -248,16 +248,16 @@ sa__git_fetch() { } # fetch from remote repository and prune local orphan branches -gfp() { sa__git_fetch_prune "${@}"; } -sa__git_fetch_prune() { - sa__git_fetch \ +gfp() { a__git_fetch_prune "${@}"; } +a__git_fetch_prune() { + a__git_fetch \ --prune \ "${@}" } # garbage collect all orphan commits -ggc() { sa__git_garbage_collect "${@}"; } -sa__git_garbage_collect() { +ggc() { a__git_garbage_collect "${@}"; } +a__git_garbage_collect() { git \ reflog \ expire \ @@ -270,16 +270,16 @@ sa__git_garbage_collect() { } # initialize a new repository -gi() { sa__git_init "${@}"; } -sa__git_init() { +gi() { a__git_init "${@}"; } +a__git_init() { git \ init \ "${@}" } # initialize a new bare repository -gib() { sa__git_init_bare "${@}"; } -sa__git_init_bare() { +gib() { a__git_init_bare "${@}"; } +a__git_init_bare() { git \ init \ --bare \ @@ -287,8 +287,8 @@ sa__git_init_bare() { } # log history -gl() { sa__git_log "${@}"; } -sa__git_log() { +gl() { a__git_log "${@}"; } +a__git_log() { git \ log \ --abbrev=8 \ @@ -299,33 +299,33 @@ sa__git_log() { } # log all history -gla() { sa__git_log_all "${@}"; } -sa__git_log_all() { - sa__git_log \ +gla() { a__git_log_all "${@}"; } +a__git_log_all() { + a__git_log \ --all \ "${@}" } # log all history with patches -glap() { sa__git_log_all_patch "${@}"; } -sa__git_log_all_patch() { - sa__git_log \ +glap() { a__git_log_all_patch "${@}"; } +a__git_log_all_patch() { + a__git_log \ --all \ --patch \ "${@}" } # log history with patches -glp() { sa__git_log_patch "${@}"; } -sa__git_log_patch() { - sa__git_log \ +glp() { a__git_log_patch "${@}"; } +a__git_log_patch() { + a__git_log \ --patch \ "${@}" } # fast-forward merge to remote branch -gm() { sa__git_merge "${@}"; } -sa__git_merge() { +gm() { a__git_merge "${@}"; } +a__git_merge() { git \ merge \ --ff-only \ @@ -333,8 +333,8 @@ sa__git_merge() { } # abort the current merge commit -gma() { sa__git_merge_abort "${@}"; } -sa__git_merge_abort() { +gma() { a__git_merge_abort "${@}"; } +a__git_merge_abort() { git \ merge \ --abort \ @@ -342,8 +342,8 @@ sa__git_merge_abort() { } # do a merge commit -gmc() { sa__git_merge_commit "${@}"; } -sa__git_merge_commit() { +gmc() { a__git_merge_commit "${@}"; } +a__git_merge_commit() { git \ merge \ --no-ff \ @@ -352,8 +352,8 @@ sa__git_merge_commit() { } # squash a branch and index its modifications -gms() { sa__git_merge_squash "${@}"; } -sa__git_merge_squash() { +gms() { a__git_merge_squash "${@}"; } +a__git_merge_squash() { git \ merge \ --squash \ @@ -361,16 +361,16 @@ sa__git_merge_squash() { } # merge via external tool -gmt() { sa__git_merge_tool "${@}"; } -sa__git_merge_tool() { +gmt() { a__git_merge_tool "${@}"; } +a__git_merge_tool() { git \ mergetool \ "${@}" } # push to the remote repository -gp() { sa__git_push "${@}"; } -sa__git_push() { +gp() { a__git_push "${@}"; } +a__git_push() { git \ push \ --tags \ @@ -379,8 +379,8 @@ sa__git_push() { } # delete from the remote repository -gpd() { sa__git_push_delete "${@}"; } -sa__git_push_delete() { +gpd() { a__git_push_delete "${@}"; } +a__git_push_delete() { git \ push \ --delete \ @@ -388,24 +388,24 @@ sa__git_push_delete() { } # force the push to the remote repository -gpf() { sa__git_push_force "${@}"; } -sa__git_push_force() { - sa__git_push \ +gpf() { a__git_push_force "${@}"; } +a__git_push_force() { + a__git_push \ --force \ "${@}" } # rebase current branch onto another -grb() { sa__git_re_base "${@}"; } -sa__git_re_base() { +grb() { a__git_re_base "${@}"; } +a__git_re_base() { git \ rebase \ "${@}" } # abort current rebase -grba() { sa__git_re_base_abort "${@}"; } -sa__git_re_base_abort() { +grba() { a__git_re_base_abort "${@}"; } +a__git_re_base_abort() { git \ rebase \ --abort \ @@ -413,8 +413,8 @@ sa__git_re_base_abort() { } # continue current rebase -grbc() { sa__git_re_base_continue "${@}"; } -sa__git_re_base_continue() { +grbc() { a__git_re_base_continue "${@}"; } +a__git_re_base_continue() { git \ rebase \ --continue \ @@ -422,8 +422,8 @@ sa__git_re_base_continue() { } # force rebase without fast-forward -grbf() { sa__git_re_base_force "${@}"; } -sa__git_re_base_force() { +grbf() { a__git_re_base_force "${@}"; } +a__git_re_base_force() { git \ rebase \ --force-rebase \ @@ -431,8 +431,8 @@ sa__git_re_base_force() { } # rebase interactively -grbi() { sa__git_re_base_interactive "${@}"; } -sa__git_re_base_interactive() { +grbi() { a__git_re_base_interactive "${@}"; } +a__git_re_base_interactive() { git \ rebase \ --interactive \ @@ -440,8 +440,8 @@ sa__git_re_base_interactive() { } # add a new remote repository -grma() { sa__git_re_mote_add "${@}"; } -sa__git_re_mote_add() { +grma() { a__git_re_mote_add "${@}"; } +a__git_re_mote_add() { git \ remote \ add \ @@ -449,8 +449,8 @@ sa__git_re_mote_add() { } # list remote repositories -grml() { sa__git_re_mote_list "${@}"; } -sa__git_re_mote_list() { +grml() { a__git_re_mote_list "${@}"; } +a__git_re_mote_list() { git \ remote \ --verbose \ @@ -458,8 +458,8 @@ sa__git_re_mote_list() { } # set the location of a remote repository -grmsu() { sa__git_re_mote_set_upstream "${@}"; } -sa__git_re_mote_set_upstream() { +grmsu() { a__git_re_mote_set_upstream "${@}"; } +a__git_re_mote_set_upstream() { git \ remote \ set-url \ @@ -467,8 +467,8 @@ sa__git_re_mote_set_upstream() { } # show connection to a remote repository -grms() { sa__git_re_mote_show "${@}"; } -sa__git_re_mote_show() { +grms() { a__git_re_mote_show "${@}"; } +a__git_re_mote_show() { git \ remote \ show \ @@ -476,24 +476,24 @@ sa__git_re_mote_show() { } # remove and add removal to index -grm() { sa__git_re_move "${@}"; } -sa__git_re_move() { +grm() { a__git_re_move "${@}"; } +a__git_re_move() { git \ rm \ "${@}" } # remove file(s) from index or move current branch pointer -grs() { sa__git_re_set "${@}"; } -sa__git_re_set() { +grs() { a__git_re_set "${@}"; } +a__git_re_set() { git \ reset \ "${@}" } # wipe modifications or reset current branch to another commit -grsh() { sa__git_re_set_hard "${@}"; } -sa__git_re_set_hard() { +grsh() { a__git_re_set_hard "${@}"; } +a__git_re_set_hard() { git \ reset \ --hard \ @@ -501,16 +501,16 @@ sa__git_re_set_hard() { } # show a commit -gsc() { sa__git_show_commit "${@}"; } -sa__git_show_commit() { +gsc() { a__git_show_commit "${@}"; } +a__git_show_commit() { git \ show \ "${@}" } # current state of repository -gs() { sa__git_status "${@}"; } -sa__git_status() { +gs() { a__git_status "${@}"; } +a__git_status() { git \ status \ --untracked-files="all" \ @@ -518,16 +518,16 @@ sa__git_status() { } # tag a commit -gt() { sa__git_tag "${@}"; } -sa__git_tag() { +gt() { a__git_tag "${@}"; } +a__git_tag() { git \ tag \ "${@}" } # delete a tag -gtd() { sa__git_tag_delete "${@}"; } -sa__git_tag_delete() { +gtd() { a__git_tag_delete "${@}"; } +a__git_tag_delete() { git \ tag \ --delete \ diff --git a/sh/alias/gpg.sh b/sh/alias/gpg.sh index 30ece71..496b05e 100644 --- a/sh/alias/gpg.sh +++ b/sh/alias/gpg.sh @@ -1,13 +1,13 @@ # turn gpg agent off -gak() { sa__gpg_agent_kill "${@}"; } -sa__gpg_agent_kill() { +gak() { a__gpg_agent_kill "${@}"; } +a__gpg_agent_kill() { gpgconf \ --kill "gpg-agent" } # bind gpg agent to current tty -gau() { sa__gpg_agent_update "${@}"; } -sa__gpg_agent_update() { +gau() { a__gpg_agent_update "${@}"; } +a__gpg_agent_update() { gpg-connect-agent \ updatestartuptty \ /bye diff --git a/sh/alias/grep.sh b/sh/alias/grep.sh index d479936..5b00ed7 100644 --- a/sh/alias/grep.sh +++ b/sh/alias/grep.sh @@ -1,6 +1,6 @@ # grep from current directory with regex -g() { sa__grep "${@}"; } -sa__grep() { +g() { a__grep "${@}"; } +a__grep() { grep \ --directories "recurse" \ --line-number \ diff --git a/sh/alias/kill.sh b/sh/alias/kill.sh index 1900a2d..718a307 100644 --- a/sh/alias/kill.sh +++ b/sh/alias/kill.sh @@ -1,13 +1,13 @@ # kill a process by id -k() { sa__kill "${@}"; } -sa__kill() { +k() { a__kill "${@}"; } +a__kill() { kill \ "${@}" } # force kill a process by id -kf() { sa__kill_force "${@}"; } -sa__kill_force() { +kf() { a__kill_force "${@}"; } +a__kill_force() { kill \ -9 \ "${@}" diff --git a/sh/alias/killall.sh b/sh/alias/killall.sh index b12e515..6658065 100644 --- a/sh/alias/killall.sh +++ b/sh/alias/killall.sh @@ -1,13 +1,13 @@ # kill all instances of a process by name -ka() { sa__kill_all "${@}"; } -sa__kill_all() { +ka() { a__kill_all "${@}"; } +a__kill_all() { killall \ "${@}" } # force kill all instances of a process by name -kaf() { sa__kill_all_force "${@}"; } -sa__kill_all_force() { +kaf() { a__kill_all_force "${@}"; } +a__kill_all_force() { killall \ -9 \ "${@}" diff --git a/sh/alias/ls.sh b/sh/alias/ls.sh index 5c90ee5..ad5a809 100644 --- a/sh/alias/ls.sh +++ b/sh/alias/ls.sh @@ -3,8 +3,8 @@ di=0;94\ " # list current directory’s entries -l() { sa__ls "${@}"; } -sa__ls() { +l() { a__ls "${@}"; } +a__ls() { ls \ --all \ --color \ @@ -15,17 +15,17 @@ sa__ls() { } # list timestamps -lt() { sa__ls_time "${@}"; } -sa__ls_time() { - sa__ls \ +lt() { a__ls_time "${@}"; } +a__ls_time() { + a__ls \ --time-style "+%Y%m%d-%H%M%S%-:::z" \ "${@}" } # list timestamps recent last -ltr() { sa__ls_time_reverse "${@}"; } -sa__ls_time_reverse() { - sa__ls_time \ +ltr() { a__ls_time_reverse "${@}"; } +a__ls_time_reverse() { + a__ls_time \ --reverse \ -t \ "${@}" diff --git a/sh/alias/lsblk.sh b/sh/alias/lsblk.sh index 359f5ae..43dffc6 100644 --- a/sh/alias/lsblk.sh +++ b/sh/alias/lsblk.sh @@ -1,7 +1,7 @@ # list block devices -lb() { sa__list_block "${@}"; } -sa__list_block() { - sa__list_block_output \ +lb() { a__list_block "${@}"; } +a__list_block() { + a__list_block_output \ "SIZE" \ "TYPE" \ "FSTYPE" \ @@ -11,21 +11,21 @@ sa__list_block() { } # base arguments -lbne() { sa__list_block_no_empty "${@}"; } -sa__list_block_no_empty() { +lbne() { a__list_block_no_empty "${@}"; } +a__list_block_no_empty() { lsblk \ --noempty \ "${@}" } # output arguments -lbo() { sa__list_block_output "${@}"; } -sa__list_block_output() { +lbo() { a__list_block_output "${@}"; } +a__list_block_output() { local argument local arguments="NAME" for argument in "${@}"; do arguments="${arguments},${argument}" done - sa__list_block_no_empty \ + a__list_block_no_empty \ --output "${arguments}" } diff --git a/sh/alias/mkdir.sh b/sh/alias/mkdir.sh index b8821a5..bebc665 100644 --- a/sh/alias/mkdir.sh +++ b/sh/alias/mkdir.sh @@ -1,13 +1,13 @@ # make a directory -md() { sa__make_directory "${@}"; } -sa__make_directory() { +md() { a__make_directory "${@}"; } +a__make_directory() { mkdir \ "${@}" } # make a directory after making its parents -mdp() { sa__make_directory_parents "${@}"; } -sa__make_directory_parents() { +mdp() { a__make_directory_parents "${@}"; } +a__make_directory_parents() { mkdir \ --parents \ "${@}" diff --git a/sh/alias/mount.sh b/sh/alias/mount.sh index b5329a9..535910e 100644 --- a/sh/alias/mount.sh +++ b/sh/alias/mount.sh @@ -1,5 +1,5 @@ -m() { sa__mount "${@}"; } -sa__mount() { +m() { a__mount "${@}"; } +a__mount() { mount \ "${@}" } diff --git a/sh/alias/mv.sh b/sh/alias/mv.sh index 8f8bffd..0630042 100644 --- a/sh/alias/mv.sh +++ b/sh/alias/mv.sh @@ -1,6 +1,6 @@ # move interactively -mvi() { sa__mo_ve_interactive "${@}"; } -sa__mo_ve_interactive() { +mvi() { a__mo_ve_interactive "${@}"; } +a__mo_ve_interactive() { mv \ --interactive \ "${@}" diff --git a/sh/alias/nano.sh b/sh/alias/nano.sh index b7cad2c..7570cda 100644 --- a/sh/alias/nano.sh +++ b/sh/alias/nano.sh @@ -1,5 +1,5 @@ -nn() { sa__na_no "${@}"; } -sa__na_no() { +nn() { a__na_no "${@}"; } +a__na_no() { nano \ "${@}" } diff --git a/sh/alias/newsboat.sh b/sh/alias/newsboat.sh index e061d63..6c08c90 100644 --- a/sh/alias/newsboat.sh +++ b/sh/alias/newsboat.sh @@ -1,5 +1,5 @@ -nb() { sa__news_boat "${@}"; } -sa__news_boat() { +nb() { a__news_boat "${@}"; } +a__news_boat() { newsboat \ "${@}" } diff --git a/sh/alias/pass.sh b/sh/alias/pass.sh index 6e3a4da..66cad55 100644 --- a/sh/alias/pass.sh +++ b/sh/alias/pass.sh @@ -1,13 +1,13 @@ # display pass entry’s content -p() { sa__pass "${@}"; } -sa__pass() { +p() { a__pass "${@}"; } +a__pass() { pass \ "${@}" } # copy passphrase into clipboard -pc() { sa__pass_clip "${@}"; } -sa__pass_clip() { +pc() { a__pass_clip "${@}"; } +a__pass_clip() { pass \ --clip \ "${@}" diff --git a/sh/alias/pgrep.sh b/sh/alias/pgrep.sh index 9350d6e..72de025 100644 --- a/sh/alias/pgrep.sh +++ b/sh/alias/pgrep.sh @@ -1,6 +1,6 @@ # look for a string in processes names -pg() { sa__proc_grep "${@}"; } -sa__proc_grep() { +pg() { a__proc_grep "${@}"; } +a__proc_grep() { pgrep \ --list-full \ "${@}" diff --git a/sh/alias/pwgen.sh b/sh/alias/pwgen.sh index a2cfcc7..3b3dc83 100644 --- a/sh/alias/pwgen.sh +++ b/sh/alias/pwgen.sh @@ -1,6 +1,6 @@ # generate passwords -pwg() { sa__pass_word_gen "${@}"; } -sa__pass_word_gen() { +pwg() { a__pass_word_gen "${@}"; } +a__pass_word_gen() { pwgen \ -1 \ --num-passwords 1048576 \ @@ -9,9 +9,9 @@ sa__pass_word_gen() { } # generate passwords with symbols -pwgs() { sa__pass_word_gen_symbols "${@}"; } -sa__pass_word_gen_symbols() { - sa__pass_word_gen \ +pwgs() { a__pass_word_gen_symbols "${@}"; } +a__pass_word_gen_symbols() { + a__pass_word_gen \ --symbols \ "${@}" } diff --git a/sh/alias/rm.sh b/sh/alias/rm.sh index ca6bd11..9634c1b 100644 --- a/sh/alias/rm.sh +++ b/sh/alias/rm.sh @@ -1,6 +1,6 @@ # remove interactively -rmi() { sa__re_move_interactive "${@}"; } -sa__re_move_interactive() { +rmi() { a__re_move_interactive "${@}"; } +a__re_move_interactive() { rm \ --interactive \ "${@}" diff --git a/sh/alias/rsync.sh b/sh/alias/rsync.sh index 773d317..bdbe4ed 100644 --- a/sh/alias/rsync.sh +++ b/sh/alias/rsync.sh @@ -1,6 +1,6 @@ # synchronize -rs() { sa__r_sync "${@}"; } -sa__r_sync() { +rs() { a__r_sync "${@}"; } +a__r_sync() { rsync \ --archive \ --no-inc-recursive \ @@ -11,17 +11,17 @@ sa__r_sync() { } # synchronize and delete after -rsda() { sa__r_sync_delete_after "${@}"; } -sa__r_sync_delete_after() { - sa__r_sync \ +rsda() { a__r_sync_delete_after "${@}"; } +a__r_sync_delete_after() { + a__r_sync \ --delete-after \ "${@}" } # synchronize and delete before -rsdb() { sa__r_sync_delete_before "${@}"; } -sa__r_sync_delete_before() { - sa__r_sync \ +rsdb() { a__r_sync_delete_before "${@}"; } +a__r_sync_delete_before() { + a__r_sync \ --delete-before \ "${@}" } diff --git a/sh/alias/tar.sh b/sh/alias/tar.sh index 6cebb0d..92b8fbf 100644 --- a/sh/alias/tar.sh +++ b/sh/alias/tar.sh @@ -1,30 +1,30 @@ -tc() { sa__tar_create "${@}"; } -sa__tar_create() { - sa__tar_verbose \ +tc() { a__tar_create "${@}"; } +a__tar_create() { + a__tar_verbose \ --create \ --auto-compress \ --file \ "${@}" } -tl() { sa__tar_list "${@}"; } -sa__tar_list() { - sa__tar_verbose \ +tl() { a__tar_list "${@}"; } +a__tar_list() { + a__tar_verbose \ --list \ --file \ "${@}" } -tv() { sa__tar_verbose "${@}"; } -sa__tar_verbose() { +tv() { a__tar_verbose "${@}"; } +a__tar_verbose() { tar \ --verbose \ "${@}" } -tx() { sa__tar_xtract "${@}"; } -sa__tar_xtract() { - sa__tar_verbose \ +tx() { a__tar_xtract "${@}"; } +a__tar_xtract() { + a__tar_verbose \ --extract \ --file \ "${@}" diff --git a/sh/alias/tmux.sh b/sh/alias/tmux.sh index 57d6053..b30dc79 100644 --- a/sh/alias/tmux.sh +++ b/sh/alias/tmux.sh @@ -1,5 +1,5 @@ -tm() { sa__t_mux "${@}"; } -sa__t_mux() { +tm() { a__t_mux "${@}"; } +a__t_mux() { tmux \ "${@}" } diff --git a/sh/alias/tree.sh b/sh/alias/tree.sh index d172896..03be3de 100644 --- a/sh/alias/tree.sh +++ b/sh/alias/tree.sh @@ -1,11 +1,11 @@ -t() { sa__tree "${@}"; } -sa__tree() { +t() { a__tree "${@}"; } +a__tree() { tree \ "${@}" } -ta() { sa__tree_all "${@}"; } -sa__tree_all() { +ta() { a__tree_all "${@}"; } +a__tree_all() { tree \ -a \ "${@}"