본문 바로가기
개발환경

[zsh] .profile의 설정을 .zprofile로 ...

by ds31x 2023. 9. 8.

WSL2의 Ubuntu에서 shell을 bash에서 zsh로 변경하기로 했다.

 

oh-my-posh에 비해, oh-my-zsh가 속도등의 측면에서 빠른 점이 있었고...
bash만 계속 사용한 듯 해서 개인용 노트북에서는 zsh도 한번 사용해봐야지 하는 생각이 들어서...
(사실 Linux에서 homebrew의 사용을 추천하는 지인의 말에 넘어간 것도 크다.)

 

요즘 여러가지 개인적으로 힘든 일이 많아서 기분전환의 성격도 ...

 

일단 bash에서 .profile 내용이 자동으로 zsh에서 적용이 안되어서 다음으로 .zprofile을 만들어 해결했다.
(다른 방법들도 많을 거 같은데... Ubuntu에서 zsh을 사용을 해본 경험이 없어서...)

emulate sh -c 'source ~/.profile'
emulate zsh

일단은 oh-my-zsh가 확실히 빠르다.

 

개인 장비에서는 zshbash보다 더 애용하게 될 거 같다.

 

https://superuser.com/questions/187639/zsh-not-hitting-profile

 

Zsh not hitting ~/.profile

I've just installed zsh on my Ubuntu system. It seems zsh isn't executing ~/.profile on init. To my best understanding, this should be an automatic behavior. What am I missing?

superuser.com

 

728x90

'개발환경' 카테고리의 다른 글

[zsh] zsh-autosuggestions  (1) 2023.09.08
[zsh] zsh-syntax-highlighting 설치.  (0) 2023.09.08
[Env] Mamba 설치하기.  (0) 2023.08.23
[Env] WSL 기본 명령어 정리.  (0) 2023.08.23
[Env] Vscode: task runner 설정.  (0) 2023.08.18