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
2023-11-28 02:34:58 +03:00

18 lines
254 B
Bash

# CD into host's primary tmp dir.
tmp()
{
local host="${HOSTNAME}"
local tmp_path
case "${host}" in
"desktop"|"home")
tmp_path="/var/mnt/storage/hot/tmp"
;;
*)
tmp_path="${HOME}/tmp"
;;
esac
cd "${tmp_path}"
}