summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/zsh/rc
diff options
context:
space:
mode:
authorGrégoire Duchêne <gregoire@awhk.org>2026-05-24 17:50:57 +0100
committerGrégoire Duchêne <gregoire@awhk.org>2026-05-24 17:50:57 +0100
commitdcff1419c119a53dd428e7585d08e189384494a6 (patch)
treef1ae1576d2e3f4be188c2d19738b1bf3adbf2eeb /dotfiles-darwin/zsh/rc
parent779f5ffa4e2f97a7750b160b8af3a48b22794562 (diff)
darwin/zsh: Add alias for ‘container’HEADmaster
Diffstat (limited to 'dotfiles-darwin/zsh/rc')
-rw-r--r--dotfiles-darwin/zsh/rc6
1 files changed, 5 insertions, 1 deletions
diff --git a/dotfiles-darwin/zsh/rc b/dotfiles-darwin/zsh/rc
index 12e295a..faa0fef 100644
--- a/dotfiles-darwin/zsh/rc
+++ b/dotfiles-darwin/zsh/rc
@@ -7,7 +7,11 @@ alias ls='ls -G'
alias pbclear='pbcopy </dev/null'
alias rsync='rsync --exclude=.DS_Store'
-if (( ${+commands[gls]} )); then
+if command_exists container; then
+ alias co=container
+fi
+
+if command_exists gls; then
alias lsh='gls -Shrs'
else
alias lsh='ls -Shlr | cut -f5- -w'