Compare commits

..

No commits in common. "1cad82456e3d603915906ce676b59534dfa8cc32" and "7d18cfa2ce5e120706b9dde343e395210110d006" have entirely different histories.

4 changed files with 7 additions and 24 deletions

View file

@ -1,7 +1,3 @@
# ╭────╮
# │ fs │
# ╰────╯
rwx_fs_make_btrfs() {
local device="${1}"
local label="${2}"

View file

@ -23,18 +23,12 @@ rwx_gnome_background_win3() {
# ╰───────┴───────╯
rwx_gnome_proxy() {
local port="${1}"
local prefix="org.gnome.system.proxy"
case "${port}" in
"")
gsettings set "${prefix}" "mode" "none"
;;
*)
gsettings set "${prefix}" "mode" "manual"
gsettings set "${prefix}.socks" "host" "localhost"
gsettings set "${prefix}.socks" "port" "${port}"
;;
local value
case "${1}" in
"on") value="manual" ;;
*) value="none" ;;
esac
gsettings set "org.gnome.system.proxy" "mode" "${value}"
}
# ╭───────┬─────╮

View file

@ -84,14 +84,12 @@ rwx_find_shell() {
# │ main │ ifs │
# ╰──────┴─────╯
# set internal field separator to line feed
rwx_ifs_set() {
_RWX_IFS="${IFS}"
IFS="
"
}
# unset internal field separator
rwx_ifs_unset() {
IFS="${_RWX_IFS}"
unset RWX_IFS
@ -101,7 +99,6 @@ rwx_ifs_unset() {
# │ main │ source │
# ╰──────┴────────╯
# source code from file path
rwx_source() {
local path="${1}"
[ -d "${path}" ] ||

View file

@ -92,7 +92,7 @@ rwx_self_init() {
_rwx_cmd_rwx_install() { rwx_self_install "${@}"; }
rwx_self_install() {
local target="${1}"
local command file name root
local command file root
# code
if [ -n "${target}" ]; then
root="${target}${RWX_ROOT_SYSTEM}"
@ -101,14 +101,10 @@ rwx_self_install() {
fi
# commands
root="${target}/usr/local/bin"
name="${RWX_SELF_NAME}.sh"
file="${root}/${name}"
rwx_remove "${file}"
rwx_link "${file}" "${RWX_MAIN_PATH}"
for command in $(rwx_self_commands); do
file="${root}/${command}"
rwx_remove "${file}"
rwx_link "${file}" "${name}"
rwx_link "${file}" "${RWX_MAIN_PATH}"
done
# sh
file="${target}/etc/profile.d/${RWX_SELF_NAME}.sh"