Compare commits
18 commits
27b917d7c9
...
2341905442
Author | SHA1 | Date | |
---|---|---|---|
2341905442 | |||
fb0513c45f | |||
bec9d22e6e | |||
6671429afe | |||
fc034aa1b8 | |||
216f84c858 | |||
3cd761254a | |||
8cb5611700 | |||
fce1d15e2b | |||
2074ec1d76 | |||
871cb98e14 | |||
7276d4cfbc | |||
201ab282b1 | |||
cffaf01eb6 | |||
7e6994c809 | |||
0fdc037ed2 | |||
352f4bc08c | |||
774ffe6cbb |
20 changed files with 28 additions and 29 deletions
|
@ -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" \
|
||||
|
|
|
@ -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" \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# clear terminal
|
||||
c() { a__clear "${@}"; }
|
||||
#= c
|
||||
a__clear() {
|
||||
clear \
|
||||
"${@}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# copy interactively
|
||||
cpi() { a__co_py_interactive "${@}"; }
|
||||
#= cpi
|
||||
a__co_py_interactive() {
|
||||
cp \
|
||||
--interactive \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
em() { a__e_macs "${@}"; }
|
||||
#= em
|
||||
a__e_macs() {
|
||||
emacs \
|
||||
"${@}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
ev() { a__e_vince "${@}"; }
|
||||
#= ev
|
||||
a__e_vince() {
|
||||
evince \
|
||||
"${@}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# grep from current directory with regex
|
||||
g() { a__grep "${@}"; }
|
||||
#= g
|
||||
a__grep() {
|
||||
grep \
|
||||
--directories "recurse" \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
m() { a__mount "${@}"; }
|
||||
#= m
|
||||
a__mount() {
|
||||
mount \
|
||||
"${@}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# move interactively
|
||||
mvi() { a__mo_ve_interactive "${@}"; }
|
||||
#= mvi
|
||||
a__mo_ve_interactive() {
|
||||
mv \
|
||||
--interactive \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
nn() { a__na_no "${@}"; }
|
||||
#= nn
|
||||
a__na_no() {
|
||||
nano \
|
||||
"${@}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
nb() { a__news_boat "${@}"; }
|
||||
#= nb
|
||||
a__news_boat() {
|
||||
newsboat \
|
||||
"${@}"
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# look for a string in processes names
|
||||
pg() { a__proc_grep "${@}"; }
|
||||
#= pg
|
||||
a__proc_grep() {
|
||||
pgrep \
|
||||
--list-full \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# remove interactively
|
||||
rmi() { a__re_move_interactive "${@}"; }
|
||||
#= rmi
|
||||
a__re_move_interactive() {
|
||||
rm \
|
||||
--interactive \
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
t() { a__tree "${@}"; }
|
||||
#= t
|
||||
a__tree() {
|
||||
tree \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
ta() { a__tree_all "${@}"; }
|
||||
#= ta
|
||||
a__tree_all() {
|
||||
tree \
|
||||
-a \
|
||||
|
|
|
@ -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 "" "${@}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue