3 コミット 04161bccae ... ada265801e

作者 SHA1 メッセージ 日付
  Tom McKenzie ada265801e fix brew call on linux 2 年 前
  Tom McKenzie c0cbfe37c4 dc 2 年 前
  Tom McKenzie 0512cac775 docker sometimes 2 年 前
2 ファイル変更9 行追加5 行削除
  1. 8 4
      .rc.d/aliases.sh
  2. 1 1
      .zshrc

+ 8 - 4
.rc.d/aliases.sh

@@ -16,11 +16,15 @@ alias duh="du -sh * | sort -h"
 # export local .env file
 alias export-env="export \$(grep -v '^#' .env | xargs -0)"
 
-# docker
-alias docker='podman'
-alias docker-compose='podman-compose'
+# docker / podman
+if [ -f '/usr/bin/podman' ]; then
+  alias docker='podman'
+  alias docker-compose='podman-compose'
+  alias dc='docker-compose'
+else
+  alias dc='docker compose'
+fi
 alias d='docker'
-alias dc='docker compose'
 
 # k8s
 alias k='kubectl'

+ 1 - 1
.zshrc

@@ -28,4 +28,4 @@ if [ -f '/Users/tom/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/tom/google-
 if [ -f '/Users/tom/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/tom/google-cloud-sdk/completion.zsh.inc'; fi
 
 
-eval "$(/opt/homebrew/bin/brew shellenv)"
+if [ -f '/opt/homebrew/bin/brew' ]; then eval "$(/opt/homebrew/bin/brew shellenv)"; fi