Skip to content

Shell

Keep up-to-date

Homebrew

Homebrewのアップデート

$ brew update

Homebrewでインストール済みのパッケージをアップグレード

$ brew upgrade

SSH

TIPS

fish shell

install

$ brew install fish
$ echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
$ chsh -s /usr/local/bin/fish

Required fish version: v2.3.0 on Fisherman

https://github.com/fisherman/fisherman#what-is-the-required-fish-version

$ brew up; and brew upgrade --HEAD fish

config

# config file
$ vim .config/fish/config.fish
# reload config
$ source .config/fish/config.fish

writing config.fish

# .bashrc
export PATH=$HOME/.nodebrew/current/bin:$PATH

# config.fish (command like, space separated)
set PATH $PATH $HOME/.nodebrew/current/bin

set export

set -gx http_proxy http://localhost:8080

function

function done_enter --on-event fish_postexec
    if test -z "$argv"
        ls
        if git rev-parse --is-inside-work-tree ^/dev/null
            echo (set_color yellow)"--- git status ---"(set_color normal)
            git status -sb
        end
    end
end

Fisherman

oh-my-fish