From d4d6e77ce37b9d98512dbb511d07ef4a2b03cbca Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 27 Sep 2024 10:50:54 +0300 Subject: [PATCH] ref --- home/user/.config/bash/functions | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home/user/.config/bash/functions b/home/user/.config/bash/functions index fe9b505..f33735b 100644 --- a/home/user/.config/bash/functions +++ b/home/user/.config/bash/functions @@ -116,8 +116,8 @@ mcd() { } open() { - test -e $1 || return 1 - nohup xdg-open $1 1>/dev/null 2>&1 & + test -e "$1" || return 1 + nohup xdg-open "$1" 1>/dev/null 2>&1 & } split-file() { @@ -141,13 +141,13 @@ json() { _get_full_file_extension() { local filename - filename=$(basename "$1") + filename="$(basename "$1")" readonly filename if [ "${filename:0:1}" = "." ]; then filename="${filename:1}" fi - echo ${filename#*.} + echo "${filename#*.}" } rmt() { @@ -192,7 +192,7 @@ sshx() { ssh -X -o ControlMaster=no -o ControlPath=none "$@" } -django_start_project() ( +django-start-project() ( set -ue local -r project_name="$1"