ref
This commit is contained in:
parent
6ded275dd3
commit
d4d6e77ce3
@ -116,8 +116,8 @@ mcd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open() {
|
open() {
|
||||||
test -e $1 || return 1
|
test -e "$1" || return 1
|
||||||
nohup xdg-open $1 1>/dev/null 2>&1 &
|
nohup xdg-open "$1" 1>/dev/null 2>&1 &
|
||||||
}
|
}
|
||||||
|
|
||||||
split-file() {
|
split-file() {
|
||||||
@ -141,13 +141,13 @@ json() {
|
|||||||
|
|
||||||
_get_full_file_extension() {
|
_get_full_file_extension() {
|
||||||
local filename
|
local filename
|
||||||
filename=$(basename "$1")
|
filename="$(basename "$1")"
|
||||||
readonly filename
|
readonly filename
|
||||||
|
|
||||||
if [ "${filename:0:1}" = "." ]; then
|
if [ "${filename:0:1}" = "." ]; then
|
||||||
filename="${filename:1}"
|
filename="${filename:1}"
|
||||||
fi
|
fi
|
||||||
echo ${filename#*.}
|
echo "${filename#*.}"
|
||||||
}
|
}
|
||||||
|
|
||||||
rmt() {
|
rmt() {
|
||||||
@ -192,7 +192,7 @@ sshx() {
|
|||||||
ssh -X -o ControlMaster=no -o ControlPath=none "$@"
|
ssh -X -o ControlMaster=no -o ControlPath=none "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
django_start_project() (
|
django-start-project() (
|
||||||
set -ue
|
set -ue
|
||||||
local -r project_name="$1"
|
local -r project_name="$1"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user