mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 02:40:14 +00:00
more fish speedup and colors
This commit is contained in:
@ -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'
|
||||
|
3
fish.configlink/functions/json.fish
Normal file
3
fish.configlink/functions/json.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function json --description "Tidy up JSON with jq"
|
||||
pbpaste | jq '.' | pbcopy
|
||||
end
|
4
fish.configlink/functions/linux.fish
Normal file
4
fish.configlink/functions/linux.fish
Normal 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
|
3
fish.configlink/functions/ls.fish
Normal file
3
fish.configlink/functions/ls.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function ls --description "Use exa to list files"
|
||||
exa $argv
|
||||
end
|
3
fish.configlink/functions/moon.fish
Normal file
3
fish.configlink/functions/moon.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function moon --description "See lunar status"
|
||||
curl wttr.in/Moon
|
||||
end
|
3
fish.configlink/functions/ping.fish
Normal file
3
fish.configlink/functions/ping.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function ping --description "Improved ping"
|
||||
prettyping --nolegend
|
||||
end
|
3
fish.configlink/functions/reload.fish
Normal file
3
fish.configlink/functions/reload.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function reload --description "Reload fish configuration"
|
||||
source $DOTS/fish.configlink/config.fish
|
||||
end
|
3
fish.configlink/functions/weather.fish
Normal file
3
fish.configlink/functions/weather.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function weather --description "Check weather"
|
||||
curl wttr.in/$WEATHER_CITY
|
||||
end
|
3
fish.configlink/functions/worldmap.fish
Normal file
3
fish.configlink/functions/worldmap.fish
Normal file
@ -0,0 +1,3 @@
|
||||
function worldmap --description "Terminal atlas"
|
||||
telnet mapscii.me
|
||||
end
|
Reference in New Issue
Block a user