########## env ##########

##### xdg #####
set -q XDG_CONFIG_HOME
or set -l XDG_CONFIG_HOME ~/.config

##### locale #####
set -gx LANG en_US.UTF-8

##### term #####
set -gx TERM xterm-256color

##### path #####
set -l local_paths /usr/local/{sbin,bin} /usr/{sbin,bin} /{sbin,bin}

# go
set -gx GOPATH $HOME/dev
set local_paths $GOPATH/bin $local_paths

# rust
set local_paths ~/.cargo/bin $local_paths

# pyenv
set local_paths ~/.pyenv/{bin,shims} $local_paths

# rbenv
set local_paths ~/.rbenv/{bin,shims} $local_paths

# update PATH via fish_user_paths
set -g fish_user_paths $local_paths

##### misc #####
set -gx GHQ_ROOT $GOPATH/src
set -gx TMUX_PLUGIN_MANAGER_PATH $XDG_CONFIG_HOME/tmux/plugins/


########## alias ##########

alias e 'emacsclient -nw -a ""'
alias ekill 'emacsclient -e "(kill-emacs)"'
alias g 'git'
alias fzf 'fzf-tmux'


########## plugins ##########

if not functions -q fisher
    curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
    fish -c fisher
end

########## env ##########

##### xdg #####
set -q XDG_CONFIG_HOME
or set -l XDG_CONFIG_HOME ~/.config

##### path #####
set -l local_paths /usr/local/{sbin,bin} /usr/{sbin,bin} /{sbin,bin}

# go
set -gx GOPATH $HOME/dev
set local_paths $GOPATH/bin $local_paths

# rust
set local_paths ~/.cargo/bin $local_paths

# pyenv
set local_paths ~/.pyenv/{bin,shims} $local_paths

# rbenv
set local_paths ~/.rbenv/{bin,shims} $local_paths

# update PATH via fish_user_paths
set -g fish_user_paths $local_paths

##### misc #####
set -gx LANG en_US.UTF-8
set -gx TERM xterm-256color
set -gx GHQ_ROOT $GOPATH/src
set -gx TMUX_PLUGIN_MANAGER_PATH $XDG_CONFIG_HOME/tmux/plugins/


########## alias ##########

alias e 'emacsclient -nw -a ""'
alias ekill 'emacsclient -e "(kill-emacs)"'
alias g 'git'
alias fzf 'fzf-tmux'


########## plugins ##########

if not functions -q fisher
    curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
    fish -c fisher
end

Integrate `local` and `term` settings into `mics`
Integrate `local` and `term` settings into `mics`

kuwata0037/dotfiles