Compare commits

...

18 commits

Author SHA1 Message Date
2341905442
log/log
All checks were successful
/ job (push) Successful in 4m32s
2025-07-06 19:22:30 +02:00
fb0513c45f
alias/grep 2025-07-06 19:20:15 +02:00
bec9d22e6e
alias/evince 2025-07-06 19:18:56 +02:00
6671429afe
alias/emacs 2025-07-06 19:18:37 +02:00
fc034aa1b8
alias/clear 2025-07-06 19:17:49 +02:00
216f84c858
alias/mount 2025-07-06 19:17:22 +02:00
3cd761254a
alias/pgrep 2025-07-06 19:16:29 +02:00
8cb5611700
alias/cp 2025-07-06 19:14:57 +02:00
fce1d15e2b
alias/mv 2025-07-06 19:14:33 +02:00
2074ec1d76
alias/rm 2025-07-06 19:14:11 +02:00
871cb98e14
alias/tree 2025-07-06 19:13:41 +02:00
7276d4cfbc
alias/chmod,chown 2025-07-06 19:12:38 +02:00
201ab282b1
alias/mkdir 2025-07-06 19:11:52 +02:00
cffaf01eb6
alias/kill,killall 2025-07-06 19:11:12 +02:00
7e6994c809
alias/nano 2025-07-06 19:10:05 +02:00
0fdc037ed2
alias/pass 2025-07-06 19:09:39 +02:00
352f4bc08c
alias/pwgen 2025-07-06 19:08:54 +02:00
774ffe6cbb
alias/newsboat 2025-07-06 19:07:34 +02:00
20 changed files with 28 additions and 29 deletions

View file

@ -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" \

View file

@ -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" \

View file

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

View file

@ -1,5 +1,5 @@
# copy interactively
cpi() { a__co_py_interactive "${@}"; }
#= cpi
a__co_py_interactive() {
cp \
--interactive \

View file

@ -1,4 +1,4 @@
em() { a__e_macs "${@}"; }
#= em
a__e_macs() {
emacs \
"${@}"

View file

@ -1,4 +1,4 @@
ev() { a__e_vince "${@}"; }
#= ev
a__e_vince() {
evince \
"${@}"

View file

@ -1,5 +1,5 @@
# grep from current directory with regex
g() { a__grep "${@}"; }
#= g
a__grep() {
grep \
--directories "recurse" \

View file

@ -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 \

View file

@ -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 \

View file

@ -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 \

View file

@ -1,4 +1,4 @@
m() { a__mount "${@}"; }
#= m
a__mount() {
mount \
"${@}"

View file

@ -1,5 +1,5 @@
# move interactively
mvi() { a__mo_ve_interactive "${@}"; }
#= mvi
a__mo_ve_interactive() {
mv \
--interactive \

View file

@ -1,4 +1,4 @@
nn() { a__na_no "${@}"; }
#= nn
a__na_no() {
nano \
"${@}"

View file

@ -1,4 +1,4 @@
nb() { a__news_boat "${@}"; }
#= nb
a__news_boat() {
newsboat \
"${@}"

View file

@ -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 \

View file

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

View file

@ -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 \

View file

@ -1,5 +1,5 @@
# remove interactively
rmi() { a__re_move_interactive "${@}"; }
#= rmi
a__re_move_interactive() {
rm \
--interactive \

View file

@ -1,10 +1,10 @@
t() { a__tree "${@}"; }
#= t
a__tree() {
tree \
"${@}"
}
ta() { a__tree_all "${@}"; }
#= ta
a__tree_all() {
tree \
-a \

View file

@ -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 "" "${@}"