Jame's Blog

前端開發心得 front-end Develop

安裝 Fish Shell 在 ubuntu

| Comments

ubuntu 安裝 Fish shell

遇到:apt-get install software-properties-common
解決方式

apt-get install software-properties-common
sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install fish

Make Fish your default shell:

chsh -s /usr/bin/fish

詳細教學

https://hackercodex.com/guide/install-fish-shell-mac-ubuntu/

另外要設定 prompt 的格式
需要再 ~/.config/fish/ 資料夾中新增 config.fish

set -g -x PATH /usr/local/bin $PATH
set -g -x fish_greeting ''

set -g theme_display_git no
set -g theme_display_git_untracked no
set -g theme_display_git_ahead_verbose yes
set -g theme_git_worktree_support yes
set -g theme_display_vagrant yes
set -g theme_display_docker_machine no
set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_display_ruby no
set -g theme_display_user yes
set -g theme_display_vi no
set -g theme_display_date no
set -g theme_display_cmd_duration yes
set -g theme_title_display_process yes
set -g theme_title_display_path no
set -g theme_title_use_abbreviated_path no
set -g theme_date_format "+%a %H:%M"
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_powerline_fonts yes
set -g theme_nerd_fonts no
set -g theme_show_exit_status yes
set -g default_user your_normal_user
set -g theme_color_scheme dark
set -g fish_prompt_pwd_dir_length 0
set -g theme_project_dir_length 1

Comments

comments powered by Disqus