Describe the bug
현재 공용 zsh 설정에 Linux 전용 명령/alias 가 macOS 환경에서도 그대로 로드되는 부분이 있습니다.
예:
alias open="xdg-open"
alias free='free -m'
notify-send 기반 alert
dircolors
lesspipe
이 구조 때문에 macOS에서 기본 명령이 덮이거나, 존재하지 않는 명령을 전제로 alias/초기화가 설정됩니다.
- macOS 기본
open 이 alias 에 의해 가려질 수 있음
- 플랫폼별로 존재하지 않는 명령이 alias/init 에 들어감
- 공용 dotfiles 를 여러 OS 에서 재사용할 때 예측 가능성이 떨어짐
- 문제 원인 파악 시 실제 바이너리 문제가 아니라 셸 alias 문제라 디버깅 비용이 커짐
To Reproduce
macOS에서 open을 사용하면 에러가 표시됩니다.
xdg-open 명령을 찾을 수 없다는 에러가 표시됩니다.
Expected behavior
open . 을 입력하면 현재 디렉토리가 파인더(파일탐색기)로 표시돼야 합니다.
- macOS 와 Linux 에서 공용 설정을 사용하더라도 각 OS 에 맞는 초기화만 수행되어야 함
- Linux 전용 명령은 Linux 에서만 alias/init 되어야 함
- macOS 기본 명령(
open 등)은 덮어쓰지 않아야 함
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
General
-
OS(uname -a): macOS 26.4
Darwin hjseoks-MacBook-Pro.local 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 5 22:45:07 PST 2026; root:xnu-12377.101.14~19/RELEASE_ARM64_T6000 arm64
-
ZSH(zsh --version):
zsh 5.9 (arm-apple-darwin23.0.0)
CheckList
Additional context
Add any other context about the problem here.
Describe the bug
현재 공용 zsh 설정에 Linux 전용 명령/alias 가 macOS 환경에서도 그대로 로드되는 부분이 있습니다.
예:
alias open="xdg-open"alias free='free -m'notify-send기반alertdircolorslesspipe이 구조 때문에 macOS에서 기본 명령이 덮이거나, 존재하지 않는 명령을 전제로 alias/초기화가 설정됩니다.
open이 alias 에 의해 가려질 수 있음To Reproduce
macOS에서 open을 사용하면 에러가 표시됩니다.
xdg-open 명령을 찾을 수 없다는 에러가 표시됩니다.
Expected behavior
open . 을 입력하면 현재 디렉토리가 파인더(파일탐색기)로 표시돼야 합니다.
open등)은 덮어쓰지 않아야 함Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
General
OS(
uname -a): macOS 26.4Darwin hjseoks-MacBook-Pro.local 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 5 22:45:07 PST 2026; root:xnu-12377.101.14~19/RELEASE_ARM64_T6000 arm64
ZSH(
zsh --version):zsh 5.9 (arm-apple-darwin23.0.0)
CheckList
Additional context
Add any other context about the problem here.