stuff
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user