Skip to content

Instantly share code, notes, and snippets.

@ysuito
Last active December 6, 2017 03:18
Show Gist options
  • Save ysuito/e24ed7f560b9504e4ce64e6717803183 to your computer and use it in GitHub Desktop.
Save ysuito/e24ed7f560b9504e4ce64e6717803183 to your computer and use it in GitHub Desktop.
quick fish shell cli enviroment recipe

quick-fish-recipe

quick fish shell cli enviroment recipe

Requirement

  • fish
  • fzf
  • git

Refer the following url to install fzf.

https://github.com/junegunn/fzf

EXAMPLE

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install # select all item as 'n'
sudo cp ~/.fzf/bin/fzf /usr/bin/fzf
rm -rf ~/.fzf
rm -f ~/.fzf.bash

Refer the following url to install fish.

https://fishshell.com/

AWS EC2 Amazon Linux installation is below.

https://vcfvct.wordpress.com/2016/01/14/install-fish-shell-in-amazon-ec2-instance/

EXAMPLE

sudo yum-config-manager --add-repo http://fishshell.com/files/linux/RedHat_RHEL-6/fish.release:2.repo
sudo yum -y install fish

Auto Installation

curl https://gist.githubusercontent.com/yamodo/b1c21b62dfc6e6022e2f96fc5cd77607/raw/ff357782c569f7ae3f78b2ae886a9a43ca58a4a0/quick-fish-chef.fish | fish

Manual Installation

DO THE FOLLOWING THINGS IN FISHSHELL

fish

install fisherman(plugin manager)

curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher

plugin install

fisher install z
fisher install 0rax/fish-bd
fisher install oh-my-fish/plugin-balias
fisher install oh-my-fish/plugin-extract
fisher install fzf
fisher install oh-my-fish/theme-coffeeandcode

command completions

fish_update_completions
set fish to alternative

echo exec fish >> ~/.bashrc

Usage

Ctrl+R command history search
Ctrl+t current directory recursive search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment