38 lines
546 B
Fish
38 lines
546 B
Fish
# ============
|
|
# Basics, etc…
|
|
# ============
|
|
|
|
# Default browser
|
|
set -g -x EDITOR "emacsclient"
|
|
|
|
# Add ~/bin to PATH
|
|
set -g -x PATH ~/bin $PATH
|
|
|
|
# Machine-local config
|
|
if test -e ~/.config/fish/local.fish
|
|
source ~/.config/fish/local.fish
|
|
end
|
|
|
|
# =========
|
|
# Functions
|
|
# =========
|
|
|
|
function ec
|
|
emacsclient -n $argv
|
|
end
|
|
|
|
# IP addresses
|
|
function ip
|
|
curl icanhazip.com
|
|
end
|
|
|
|
# edit config.fish (this file)
|
|
function cf
|
|
ec ~/.config/fish/config.fish
|
|
end
|
|
|
|
# reload your Fish config
|
|
function src
|
|
source ~/.config/fish/config.fish; and clear
|
|
end
|