This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/Tmp.sh

17 lines
242 B
Bash
Raw Normal View History

2023-11-28 02:34:58 +03:00
# CD into host's primary tmp dir.
2023-12-07 01:44:42 +03:00
function tmp() {
2023-12-05 21:50:45 +03:00
local host="${HOSTNAME}"
local tmp_path
2023-11-28 02:34:58 +03:00
2023-12-05 21:50:45 +03:00
case "${host}" in
"desktop"|"home")
tmp_path="/var/mnt/storage/hot/tmp"
;;
*)
tmp_path="${HOME}/tmp"
;;
esac
2023-11-28 02:34:58 +03:00
2023-12-05 21:50:45 +03:00
cd "${tmp_path}"
2023-11-28 02:34:58 +03:00
}