|
@@ -181,7 +181,7 @@ then |
|
|
fi |
|
|
fi |
|
|
__match "$TMP" "${USER}-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp" |
|
|
__match "$TMP" "${USER}-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp" |
|
|
export TEMP="$TMP" |
|
|
export TEMP="$TMP" |
|
|
test -d "$TMP" || install -d "$TMP" |
|
|
|
|
|
|
|
|
test -d "$TMP" || mkdir -p "$TMP" |
|
|
|
|
|
|
|
|
if ! $iswindows && null type stty |
|
|
if ! $iswindows && null type stty |
|
|
then |
|
|
then |
|
@@ -682,7 +682,7 @@ _tmux_prefs(){ |
|
|
dt(){ |
|
|
dt(){ |
|
|
# dt [<name>] [<command ...>] |
|
|
# dt [<name>] [<command ...>] |
|
|
__dtach_dir="${TMP}/dtach" |
|
|
__dtach_dir="${TMP}/dtach" |
|
|
install -d "${__dtach_dir}" |
|
|
|
|
|
|
|
|
mkdir -p "${__dtach_dir}" |
|
|
|
|
|
|
|
|
if test -n "${__MY_DTACH}" |
|
|
if test -n "${__MY_DTACH}" |
|
|
then |
|
|
then |
|
@@ -747,7 +747,7 @@ dtscr(){ |
|
|
local _scr_file="${HOME}/${_name}.script" |
|
|
local _scr_file="${HOME}/${_name}.script" |
|
|
|
|
|
|
|
|
local _dt_dir="${TMP}/dtscr" |
|
|
local _dt_dir="${TMP}/dtscr" |
|
|
install -d "$_dt_dir" |
|
|
|
|
|
|
|
|
mkdir -p "$_dt_dir" |
|
|
|
|
|
|
|
|
dtach -n "${_dt_dir}/${_name}" script "${_scr_file_}" "$@" |
|
|
dtach -n "${_dt_dir}/${_name}" script "${_scr_file_}" "$@" |
|
|
# echo $_name |
|
|
# echo $_name |
|
@@ -855,7 +855,7 @@ di(){ |
|
|
tb(){ |
|
|
tb(){ |
|
|
__datenum=`date +%Y%m%d-%H%M%S` |
|
|
__datenum=`date +%Y%m%d-%H%M%S` |
|
|
__tb="$HOME/.var/tb/$__datenum" |
|
|
__tb="$HOME/.var/tb/$__datenum" |
|
|
install -d "$__tb" |
|
|
|
|
|
|
|
|
mkdir -p "$__tb" |
|
|
for file in "$@" |
|
|
for file in "$@" |
|
|
do |
|
|
do |
|
|
mv -t "$__tb" "$file" |
|
|
mv -t "$__tb" "$file" |
|
@@ -871,7 +871,7 @@ mkcd(){ |
|
|
then |
|
|
then |
|
|
echo "Dir \"$1\" already exists." |
|
|
echo "Dir \"$1\" already exists." |
|
|
else |
|
|
else |
|
|
install -d "$1" |
|
|
|
|
|
|
|
|
mkdir -p "$1" |
|
|
echo "Dir \"$1\" created." |
|
|
echo "Dir \"$1\" created." |
|
|
fi |
|
|
fi |
|
|
cd "$1" |
|
|
cd "$1" |
|
|