취미와 밥줄사이
[ Linux ] zsh 프롬프트 현재 디렉터리만 표시하는 방법 본문
vim .oh-my-zsh/themes/agnoster.zsh-theme
# Dir: current working directory
prompt_dir() {
#prompt_segment blue $CURRENT_FG '%~'
prompt_segment blue $CURRENT_FG '%c'
}
REFERENCE
[리눅스] zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법(agnoster theme)
zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법 vim .oh-my-zsh/themes/agnoster.zsh-theme $ vim .oh-my-zsh/themes/agnoster.zsh-theme ... # Dir: current working directory prompt_dir..
scbyun.com
'OS > Linux' 카테고리의 다른 글
[ CentOS7 ] RPM 명령어 사용법 (0) | 2022.03.06 |
---|---|
[ Linux ] File Descriptor(파일 디스크립터) (0) | 2022.03.04 |
[ Ubuntu 20.04 ] zsh에 Anaconda 설치 (0) | 2022.02.13 |
[ Linux 명령어 ] source 명령어란 (0) | 2022.02.12 |
[ Vim ] 주석처리 (0) | 2022.02.12 |