more fish speedup and colors

This commit is contained in:
Noah Masur
2020-12-21 19:09:53 -07:00
parent 80f84e69b3
commit 64b7abf5eb
11 changed files with 69 additions and 27 deletions

View File

@ -3,11 +3,12 @@
function abbrs --description 'All abbreviations'
# Directory aliases
abbr -a l 'ls' # Quicker shortcut for ls
abbr -a lh 'ls -lh' # Pretty vertical list
abbr -a ll 'ls -alhF' # Include hidden files
abbr -a l 'ls'
abbr -a lh 'ls -lh'
abbr -a ll 'ls -alhF'
abbr -a c 'cd'
abbr -a -- - 'cd -'
abbr -a proj 'cd $PROJ'
# Tmux
abbr -a ta 'tmux attach-session'

View File

@ -0,0 +1,3 @@
function json --description "Tidy up JSON with jq"
pbpaste | jq '.' | pbcopy
end

View File

@ -0,0 +1,4 @@
function linux --description "Load only on Linux"
alias pbcopy='xclip -selection clipboard -in'
alias pbpaste='xclip -selection clipboard -out'
end

View File

@ -0,0 +1,3 @@
function ls --description "Use exa to list files"
exa $argv
end

View File

@ -0,0 +1,3 @@
function moon --description "See lunar status"
curl wttr.in/Moon
end

View File

@ -0,0 +1,3 @@
function ping --description "Improved ping"
prettyping --nolegend
end

View File

@ -0,0 +1,3 @@
function reload --description "Reload fish configuration"
source $DOTS/fish.configlink/config.fish
end

View File

@ -0,0 +1,3 @@
function weather --description "Check weather"
curl wttr.in/$WEATHER_CITY
end

View File

@ -0,0 +1,3 @@
function worldmap --description "Terminal atlas"
telnet mapscii.me
end