# fzf : exact match, custom layout
set --export FZF_DEFAULT_OPTS '--exact --inline-info --reverse --height=10'

# ls : show all, colorize, sort by version number
if command -sq gls
    alias ls 'gls -A --sort=version'
else
    alias ls 'ls -A'
end

# cp : show files
alias cp 'cp -v'

# mv : show files
alias mv 'mv -v'

# rm : prompt once before removing, show files
if command -sq grm
    alias rm 'grm -I -v'
else
    alias rm 'rm -i -v'
end

# diff : unified format, colorize
if command -sq colordiff
    alias diff 'colordiff --unified'
else
    alias diff 'diff --unified'
end

# less : colorize, chop long lines, no clearing screen
set --export LESS 'RSX'

# jq : colorize
alias jq 'jq -C'

# bc : mathlib
alias bc 'bc -l'

# pipenv : always assign a virtual environment
set --export PIPENV_IGNORE_VIRTUALENVS 1

# EDITOR : CotEditor
if command -sq cot
    set --export EDITOR 'cot --wait'
end

# fzf : exact match, custom layout
set --export FZF_DEFAULT_OPTS '--exact --inline-info --reverse --height=10'

# ls : show all, colorize, sort by version number
if command -sq gls
    alias ls 'gls -A --sort=version'
else
    alias ls 'ls -A'
end

# cp : show files
alias cp 'cp -v'

# mv : show files
alias mv 'mv -v'

# rm : prompt once before removing, show files
if command -sq grm
    alias rm 'grm -I -v'
else
    alias rm 'rm -i -v'
end

# diff : unified format, colorize
if command -sq colordiff
    alias diff 'colordiff --unified'
else
    alias diff 'diff --unified'
end

# less : colorize, chop long lines, no clearing screen
set --export LESS 'RSX'

# jq : colorize
alias jq 'jq -C'

# bc : mathlib
alias bc 'bc -l'

# pipenv : always assign a virtual environment
set --export PIPENV_IGNORE_VIRTUALENVS 1

# EDITOR
if command --query code
    set --export EDITOR 'code --wait'
end

Use code command for EDITOR
Use code command for EDITOR

usami-k/dotfiles,usami-k/dotfiles