Oh_my_fish

Install

1
2
brew install fish
curl -L https://get.oh-my.fish | fish

config

1
2
# set theme
fish_config

设置 lscolors 颜色

缺省LSCOLORS设定

lscolors

1
2
# 配置文件
~/.config/fish/config.fish

config.fish

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
alias sp="export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890"
alias nsp="unset http_proxy https_proxy all_proxy"
alias cip="curl cip.cc"

# define funtions
function unset
set --erase $argv
end
# autojump-plugin
if test -f /Users/elli0t/.autojump/share/autojump/autojump.fish; . /Users/elli0t/.autojump/share/autojump/autojump.fish; end

# 设置目录颜色 lscolors
export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad

# mac 命令记录
# sw_vers

Link

Fish shell 入门教程

LSCOLORS 对应的11种文件的示例文件生成

oh-my-fish