|
@@ -96,6 +96,22 @@ recall(){
|
|
|
_recall_fun $1 | sed 's/^/ /'
|
|
_recall_fun $1 | sed 's/^/ /'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+clear() {
|
|
|
|
|
+ /usr/bin/clear
|
|
|
|
|
+ if [[ ! -z "${TMUX}" ]]; then tmux clear-history; fi
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+swap() {
|
|
|
|
|
+ if [[ $# -ne 2 ]]; then
|
|
|
|
|
+ echo "swap file1 file2" >&2
|
|
|
|
|
+ return 1
|
|
|
|
|
+ fi
|
|
|
|
|
+ local tmpfile=$(mktemp)
|
|
|
|
|
+ mv "${1}" "${tmpfile}"
|
|
|
|
|
+ mv "${2}" "${1}"
|
|
|
|
|
+ mv "${tmpfile}" "${2}"
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
alias coms="${HOME}/tools/comstore/commands.sh"
|
|
alias coms="${HOME}/tools/comstore/commands.sh"
|
|
|
|
|
|
|
|
source ${HOME}/.profile-p4
|
|
source ${HOME}/.profile-p4
|