체인의정석

터미널 사용을 도와주는 툴들 (zplug, iterm2, autojump) 본문

개발/docker & linux

터미널 사용을 도와주는 툴들 (zplug, iterm2, autojump)

체인의정석 2022. 11. 21. 11:47
728x90
반응형

1. zplug
https://github.com/zplug/zplug

 

GitHub - zplug/zplug: A next-generation plugin manager for zsh

:hibiscus: A next-generation plugin manager for zsh - GitHub - zplug/zplug: A next-generation plugin manager for zsh

github.com

zplug 의 경우 zsh의 여러 플러그인을 쉽게 관리하게 도와준다고 한다.

curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh

위를 통해 설치가 가능하다.

 

설치 후 실행할 시

- zsh-users/zsh-syntax-highlighting: not installed
- lib/completion: not installed
- lib/key-bindings: not installed
- dracula/zsh: not installed
- plugins/git: not installed
Install? [y/N]: y
[zplug] Start to install 7 plugins in parallel

 ✔  Installed!            lib/directories
 ✔  Installed!            zsh-users/zsh-syntax-highlighting
 ✔  Installed!            zsh-users/zsh-autosuggestions
 ✔  Installed!            lib/completion
 ✔  Installed!            lib/key-bindings
 ✔  Installed!            dracula/zsh
 ✔  Installed!            plugins/git

유용한 툴들을 알아서 다 기본적으로 설치해준다.

 

생상도 입혀주고 자동완성도 시켜준다.

 

그냥 한번에 설치를 해주니 편한것 같다.

 

 

2. auto jump

한번 방문한 경로라면 

j 경로명 을 통해서 손쉽게 다시 경로로 점프가 가능한 프로그램

사용하면 시간단축이 많이 될 수 있을것 같다.

https://github.com/wting/autojump

 

GitHub - wting/autojump: A cd command that learns - easily navigate directories from the command line

A cd command that learns - easily navigate directories from the command line - GitHub - wting/autojump: A cd command that learns - easily navigate directories from the command line

github.com

깃허브 readme에서 설치 명령어 검색 후 활용

brew install autojump

보니까 최신 버전으로 업데이트가 가능하다고 해서

brew upgrade

명령어를 써서 업그레이드 하였다.

이후 에러가 뜨는데

Please source the correct autojump file in your shell's
startup file. For more information, please reinstall autojump
and read the post installation instructions.

brew info auto jump를 해보면

brew info autojump   
==> autojump: stable 22.5.3 (bottled), HEAD
Shell extension to jump to frequently used directories
https://github.com/wting/autojump
/usr/local/Cellar/autojump/22.5.3_3 (24 files, 241.6KB) *
  Poured from bottle on 2022-11-03 at 15:05:57
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/autojump.rb
License: GPL-3.0-or-later
==> Dependencies
Required: python@3.11 ✘
==> Options
--HEAD
        Install HEAD version
==> Caveats
Add the following line to your ~/.bash_profile or ~/.zshrc file:
  [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

If you use the Fish shell then add the following line to your ~/.config/fish/config.fish:
  [ -f /usr/local/share/autojump/autojump.fish ]; and source /usr/local/share/autojump/autojump.fish

Restart your terminal for the settings to take effect.

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Analytics
install: 4,500 (30 days), 13,274 (90 days), 61,619 (365 days)
install-on-request: 4,497 (30 days), 13,265 (90 days), 61,580 (365 days)
build-error: 1 (30 days)

여기에 쓰인대로 설정을 해주어야 한다.

 

vi ~/.zshrc

맨 밑에 아래 추가
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh

 

3. iterm 2

익숙해지면 터미널 창을 여러게 띄우고 컨트롤하는데 편리하다.

 

 

 

728x90
반응형
Comments