This commit is contained in:
Sam A. 2022-07-11 11:03:43 +02:00
parent d648fca8d1
commit ff1ee17d76
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -16,6 +16,7 @@ bt() {
doasedit() { doasedit() {
(( ${+commands[doas]} )) || return 2 (( ${+commands[doas]} )) || return 2
[[ $# -eq 0 ]] || return 1
doas -L doas -L
doas -u root sh -c \ doas -u root sh -c \
@ -48,11 +49,11 @@ get_ip() {
http() { http() {
(( ${+commands[python]} )) || return 2 (( ${+commands[python]} )) || return 2
eval "python -m http.server 8080 --bind 127.0.0.1 \ eval "python -m http.server 8080 --bind 127.0.0.1 \
$( [[ $# -gt 0 ]] && echo "--directory $1" )" $( [[ $# -gt 0 ]] && echo "--directory $1" ) $@"
} }
open() { open() {
(( ${+commands[xdg-open]} )) || return 2 (( ${+commands[xdg-open]} )) || return 2
nohup xdg-open "$1" &> /dev/null & disown nohup xdg-open "$@" &> /dev/null & disown
} }