diff options
| author | Anton Bobov <anton@bobov.name> | 2026-04-08 15:45:24 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2026-04-16 16:33:34 +0500 |
| commit | 88f873c701943a6361682dad31bfcb0a40376745 (patch) | |
| tree | b9af9b70d7ff62c0111f0bb2a1a77b90c70d0b0f /files | |
| parent | 69b1985d124afc2897a603ce238eb400c771f91e (diff) | |
Diffstat (limited to 'files')
| -rw-r--r-- | files/.zsh/rc/S50_functions | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index b446f16..81e71c8 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -166,4 +166,12 @@ vpn-toggle() { fi } +own() { + if [ -n "${commands[sudo]}" ] ; then + sudo chown -R "$USER:" "$@" + else + chown -R "$USER:" "$@" + fi +} + # vim: ft=zsh : |
