반응형
    
    
    
  zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법(agnoster theme)
vim .oh-my-zsh/themes/agnoster.zsh-theme$ vim .oh-my-zsh/themes/agnoster.zsh-theme
...
# Dir: current working directory
prompt_dir() {
  #prompt_segment blue $CURRENT_FG '%~'
  #prompt_segment blue $CURRENT_FG '%2~'
  #prompt_segment blue $CURRENT_FG ' %25<...<%~%<< '
  prompt_segment blue $CURRENT_FG '%c'
}
...기본
prompt_segment blue $CURRENT_FG '%~'
25자보다 긴 문자는 ...으로 표시
prompt_segment blue $CURRENT_FG ' %25<...<%~%<< '- %25<...< will truncate everything that is longer than 25 characters to ...
- %<< will basically tell zsh that anything after this should not be truncated (limiting the truncation to the path part)

현재 작업 디렉토리만 표시
prompt_segment blue $CURRENT_FG '%c'
728x90
    
    
  반응형
    
    
    
  '리눅스' 카테고리의 다른 글
| curl 명령어 (0) | 2021.06.04 | 
|---|---|
| sipcalc 명령어 (0) | 2021.06.03 | 
| Ansible setup 모듈(setup module)을 사용하는 방법 (0) | 2021.06.03 | 
| ansible inventory(인벤토리) 설정 (0) | 2021.06.01 | 
| [리눅스] 리눅스에서 삭제된 파일의 디스크 공간을 복구하는 방법 (0) | 2021.05.30 | 
 
                  
                 
                  
                 
                  
                