feat(profiles): add up to .zshrc

This commit is contained in:
2026-07-26 06:47:21 +01:00
parent 430cc13251
commit ee503a225c
+7
View File
@@ -117,6 +117,13 @@ phok() {
# ---------- misc helpers ----------
mkcd(){ mkdir -p "$1" && cd "$1"; }
up(){
local n="${1:-1}"
[[ "$n" =~ ^[0-9]+$ ]] || { echo "up: expects a number"; return 1; }
local path=""
for ((i=0; i<n; i++)); do path="../$path"; done
cd "$path" || return
}
extract(){
case "$1" in
*.tar.gz|*.tgz) tar xzf "$1";;