This commit is contained in:
2018-10-03 19:54:17 +04:00
parent 48017cb81c
commit 68bec0b2d4
2 changed files with 23 additions and 1 deletions

View File

@@ -1,9 +1,27 @@
function is_local {
local HOSTNAME="$(hostname)"
[[ "$HOSTNAME" =~ '^abra0' || "$HOSTNAME" == "svxf2-osx" ]]
}
function mkcd {
FUNCTION_PRELUDE_NO_XTRACE
if [[ -z $1 ]]; then
echo ':('
return 1
fi
if [[ -e $1 ]]; then
echo "file exists"
return 1
fi
mkdir $1
cd $1
}
function publish {
FUNCTION_PRELUDE