2021년 2월 15일 월요일

Linux Shell: fish

# zsh 보다 초기 설정도 간편하고 별도 설정없이 git, 자동제안 기능 등을 사용

# https://github.com/powerline/fonts 해당 폰트 중 일부가 필요할 수 있음


# 설치 방법

$ sudo apt-get install fish


Then install “Oh My Fish”:

$ curl -L https://get.oh-my.fish | fish


And set the theme to agnoster:

$ omf install agnoster

$ omf theme agnoster


~/.config/fish/config.fish 생성

사용하고자 하는 alias 작성

# Shorten things

alias ..='cd ..'

alias ...='cd ../../'

alias ll='ls -alF'

alias la='ls -A'

alias l='ls -CF'

alias c='clear'# If your terminal supports colors, use them!

alias ls='ls --color=auto'

alias grep='grep --color=auto'

alias fgrep='fgrep --color=auto'

alias egrep='egrep --color=auto'

alias diff='colordiff'# Works only if you have notify-send


# 설치 완료 후 shell 에서 fish 입력.


댓글 없음:

댓글 쓰기