mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-02-12 13:22:48 +00:00
loot
This commit is contained in:
@@ -274,12 +274,15 @@ hide() {
|
||||
hs_mkhome() {
|
||||
[ -d "${XHOME}" ] && return 255
|
||||
mkdir -p "${XHOME:?}" 2>/dev/null || return
|
||||
echo -e ">>> Using ${CDY}${XHOME}${CN}. ${CF}[will auto-destruct on exit]${CN}"
|
||||
echo -e ">>> Using ${CDY}XHOME=${XHOME}${CN}. ${CF}[will auto-destruct on exit]${CN}"
|
||||
echo -e ">>> Type ${CDC}cdx${CN} to change to your hidden ${CDY}\"\${XHOME}\"${CN} directory"
|
||||
echo -e ">>> Type ${CDC}keep${CN} to disable auto-destruct on exit."
|
||||
# [[ "$PATH" == "$XHOME"* ]] || export PATH="${XHOME}:$PATH"
|
||||
export PATH="${XHOME}:$PATH"
|
||||
}
|
||||
|
||||
cdx() { cd "${XHOME}"; }
|
||||
|
||||
# Keep this seperate because this actually creates data.
|
||||
mk() {
|
||||
UHOME="${HOME}"
|
||||
|
||||
Reference in New Issue
Block a user