diff --git a/sh/alias/chmod.sh b/sh/alias/chmod.sh index 57ec74e..611f768 100644 --- a/sh/alias/chmod.sh +++ b/sh/alias/chmod.sh @@ -1,5 +1,5 @@ # change mode to directory -cmd() { a__change_mode_directory "${@}"; } +#= cmd a__change_mode_directory() { chmod \ "755" \ @@ -7,7 +7,7 @@ a__change_mode_directory() { } # change mode to file -cmf() { a__change_mode_file "${@}"; } +#= cmf a__change_mode_file() { chmod \ "644" \ diff --git a/sh/alias/chown.sh b/sh/alias/chown.sh index f4fa865..df230fc 100644 --- a/sh/alias/chown.sh +++ b/sh/alias/chown.sh @@ -1,5 +1,5 @@ # change owner to root -cor() { a__change_owner_root "${@}"; } +#= cor a__change_owner_root() { chown \ "0:0" \ @@ -7,7 +7,7 @@ a__change_owner_root() { } # change owner to user -cou() { a__change_owner_user "${@}"; } +#= cou a__change_owner_user() { chown \ "1000:1000" \ diff --git a/sh/alias/clear.sh b/sh/alias/clear.sh index ae32b30..3424e6e 100644 --- a/sh/alias/clear.sh +++ b/sh/alias/clear.sh @@ -1,5 +1,5 @@ # clear terminal -c() { a__clear "${@}"; } +#= c a__clear() { clear \ "${@}" diff --git a/sh/alias/cp.sh b/sh/alias/cp.sh index c9e7d6b..caee098 100644 --- a/sh/alias/cp.sh +++ b/sh/alias/cp.sh @@ -1,5 +1,5 @@ # copy interactively -cpi() { a__co_py_interactive "${@}"; } +#= cpi a__co_py_interactive() { cp \ --interactive \ diff --git a/sh/alias/emacs.sh b/sh/alias/emacs.sh index 8e26878..ff6cc65 100644 --- a/sh/alias/emacs.sh +++ b/sh/alias/emacs.sh @@ -1,4 +1,4 @@ -em() { a__e_macs "${@}"; } +#= em a__e_macs() { emacs \ "${@}" diff --git a/sh/alias/evince.sh b/sh/alias/evince.sh index 25ac069..80fc647 100644 --- a/sh/alias/evince.sh +++ b/sh/alias/evince.sh @@ -1,4 +1,4 @@ -ev() { a__e_vince "${@}"; } +#= ev a__e_vince() { evince \ "${@}" diff --git a/sh/alias/grep.sh b/sh/alias/grep.sh index 5b00ed7..142b3d0 100644 --- a/sh/alias/grep.sh +++ b/sh/alias/grep.sh @@ -1,5 +1,5 @@ # grep from current directory with regex -g() { a__grep "${@}"; } +#= g a__grep() { grep \ --directories "recurse" \ diff --git a/sh/alias/kill.sh b/sh/alias/kill.sh index 718a307..6abc003 100644 --- a/sh/alias/kill.sh +++ b/sh/alias/kill.sh @@ -1,12 +1,12 @@ # kill a process by id -k() { a__kill "${@}"; } +#= k a__kill() { kill \ "${@}" } # force kill a process by id -kf() { a__kill_force "${@}"; } +#= kf a__kill_force() { kill \ -9 \ diff --git a/sh/alias/killall.sh b/sh/alias/killall.sh index 6658065..259cb40 100644 --- a/sh/alias/killall.sh +++ b/sh/alias/killall.sh @@ -1,12 +1,12 @@ # kill all instances of a process by name -ka() { a__kill_all "${@}"; } +#= ka a__kill_all() { killall \ "${@}" } # force kill all instances of a process by name -kaf() { a__kill_all_force "${@}"; } +#= kaf a__kill_all_force() { killall \ -9 \ diff --git a/sh/alias/mkdir.sh b/sh/alias/mkdir.sh index bebc665..fcedee1 100644 --- a/sh/alias/mkdir.sh +++ b/sh/alias/mkdir.sh @@ -1,12 +1,12 @@ # make a directory -md() { a__make_directory "${@}"; } +#= md a__make_directory() { mkdir \ "${@}" } # make a directory after making its parents -mdp() { a__make_directory_parents "${@}"; } +#= mdp a__make_directory_parents() { mkdir \ --parents \ diff --git a/sh/alias/mount.sh b/sh/alias/mount.sh index 535910e..8741ab9 100644 --- a/sh/alias/mount.sh +++ b/sh/alias/mount.sh @@ -1,4 +1,4 @@ -m() { a__mount "${@}"; } +#= m a__mount() { mount \ "${@}" diff --git a/sh/alias/mv.sh b/sh/alias/mv.sh index 0630042..526cb78 100644 --- a/sh/alias/mv.sh +++ b/sh/alias/mv.sh @@ -1,5 +1,5 @@ # move interactively -mvi() { a__mo_ve_interactive "${@}"; } +#= mvi a__mo_ve_interactive() { mv \ --interactive \ diff --git a/sh/alias/nano.sh b/sh/alias/nano.sh index 7570cda..586465f 100644 --- a/sh/alias/nano.sh +++ b/sh/alias/nano.sh @@ -1,4 +1,4 @@ -nn() { a__na_no "${@}"; } +#= nn a__na_no() { nano \ "${@}" diff --git a/sh/alias/newsboat.sh b/sh/alias/newsboat.sh index 6c08c90..0c89178 100644 --- a/sh/alias/newsboat.sh +++ b/sh/alias/newsboat.sh @@ -1,4 +1,4 @@ -nb() { a__news_boat "${@}"; } +#= nb a__news_boat() { newsboat \ "${@}" diff --git a/sh/alias/pass.sh b/sh/alias/pass.sh index 66cad55..b71209e 100644 --- a/sh/alias/pass.sh +++ b/sh/alias/pass.sh @@ -1,12 +1,12 @@ # display pass entry’s content -p() { a__pass "${@}"; } +#= p a__pass() { pass \ "${@}" } # copy passphrase into clipboard -pc() { a__pass_clip "${@}"; } +#= pc a__pass_clip() { pass \ --clip \ diff --git a/sh/alias/pgrep.sh b/sh/alias/pgrep.sh index 72de025..9f04267 100644 --- a/sh/alias/pgrep.sh +++ b/sh/alias/pgrep.sh @@ -1,5 +1,5 @@ # look for a string in processes names -pg() { a__proc_grep "${@}"; } +#= pg a__proc_grep() { pgrep \ --list-full \ diff --git a/sh/alias/pwgen.sh b/sh/alias/pwgen.sh index 3b3dc83..bbaa707 100644 --- a/sh/alias/pwgen.sh +++ b/sh/alias/pwgen.sh @@ -1,5 +1,5 @@ # generate passwords -pwg() { a__pass_word_gen "${@}"; } +#= pwg a__pass_word_gen() { pwgen \ -1 \ @@ -9,7 +9,7 @@ a__pass_word_gen() { } # generate passwords with symbols -pwgs() { a__pass_word_gen_symbols "${@}"; } +#= pwgs a__pass_word_gen_symbols() { a__pass_word_gen \ --symbols \ diff --git a/sh/alias/rm.sh b/sh/alias/rm.sh index 9634c1b..350f8ce 100644 --- a/sh/alias/rm.sh +++ b/sh/alias/rm.sh @@ -1,5 +1,5 @@ # remove interactively -rmi() { a__re_move_interactive "${@}"; } +#= rmi a__re_move_interactive() { rm \ --interactive \ diff --git a/sh/alias/tree.sh b/sh/alias/tree.sh index 03be3de..745d9e3 100644 --- a/sh/alias/tree.sh +++ b/sh/alias/tree.sh @@ -1,10 +1,10 @@ -t() { a__tree "${@}"; } +#= t a__tree() { tree \ "${@}" } -ta() { a__tree_all "${@}"; } +#= ta a__tree_all() { tree \ -a \ diff --git a/sh/log/log.sh b/sh/log/log.sh index a3013e8..a7bb0f4 100644 --- a/sh/log/log.sh +++ b/sh/log/log.sh @@ -23,8 +23,6 @@ RWX_LOG_LEVEL=${RWX_LOG_LEVEL_INFO} # │ log │ log │ # ╰─────┴─────╯ -rwx_log() { rwx_log_info "${@}"; } - rwx_log_debug() { if [ "${RWX_LOG_LEVEL}" -ge "${RWX_LOG_LEVEL_DEBUG}" ]; then _rwx_log "[DEBUG]" "${@}" @@ -51,6 +49,7 @@ rwx_log_fatal() { fi } +#= rwx_log rwx_log_info() { if [ "${RWX_LOG_LEVEL}" -ge "${RWX_LOG_LEVEL_INFO}" ]; then _rwx_log "" "${@}"