fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
0df6fa791
master
1# climate is a tool that provide simple commands that wrap some useful 2# but complex combination of Linux commands. 3# The tool can be found at https://github.com/adtac/climate 4 5function __fish_climate_has_no_argument 6set -l cmd( commandline -xpc) 7not set -q cmd[ 2 ] 8end 9 10# Meta 11complete -f -n __fish_climate_has_no_argument -c climate -a help -d'Show help' 12complete -f -n __fish_climate_has_no_argument -c climate -a update -d'Update your climate install' 13complete -f -n __fish_climate_has_no_argument -c climate -a uninstall -d'uninstall climate' 14complete -f -n __fish_climate_has_no_argument -c climate -a version -d'Show climate version' 15 16# Info 17complete -f -n __fish_climate_has_no_argument -c climate -a weather -d'Get the weather' 18 19# General 20complete -f -n __fish_climate_has_no_argument -c climate -a battery -d'Display remaining battery' 21complete -f -n __fish_climate_has_no_argument -c climate -a sleep -d'Display remaining battery' 22complete -f -n __fish_climate_has_no_argument -c climate -a lock -d'Lock computer' 23complete -f -n __fish_climate_has_no_argument -c climate -a shutdown -d'Shutdown the computer' 24complete -f -n __fish_climate_has_no_argument -c climate -a restart -d'Restart the computer' 25complete -f -n __fish_climate_has_no_argument -c climate -a time -d'Show the time' 26complete -f -n __fish_climate_has_no_argument -c climate -a clock -d'Put a console clock in the top right corner' 27complete -f -n __fish_climate_has_no_argument -c climate -a countdown -d'A countdown timer' 28complete -f -n __fish_climate_has_no_argument -c climate -a stopwatch -d'A stopwatch' 29complete -f -n __fish_climate_has_no_argument -c climate -a ix -d'Pipe output to ix.io' 30 31# Files 32complete -n __fish_climate_has_no_argument -c climate -a biggest-files -d'Find the biggest files recursively' 33complete -n __fish_climate_has_no_argument -c climate -a biggest-dirs -d'Find the biggest directories' 34complete -n __fish_climate_has_no_argument -c climate -a dir-size -d'Find directory size' 35complete -n __fish_climate_has_no_argument -c climate -a remove-empty-dirs -d'Remove empty directories' 36complete -n __fish_climate_has_no_argument -c climate -a extract -d'Extract any given archive' 37complete -n __fish_climate_has_no_argument -c climate -a find-duplicates -d'Report duplicate files in a directory' 38complete -n __fish_climate_has_no_argument -c climate -a count -d'Count the number of occurrences' 39complete -n __fish_climate_has_no_argument -c climate -a monitor -d'Monitor file for changes' 40complete -f -n __fish_climate_has_no_argument -c climate -a grep -d'Search for the given pattern recursively' 41complete -f -n __fish_climate_has_no_argument -c climate -a replace -d'Replace all occurrences' 42complete -f -n __fish_climate_has_no_argument -c climate -a ramfs -d'Create a ramfs of size (in MB) at path' 43 44# Network 45complete -f -n __fish_climate_has_no_argument -c climate -a speedtest -d'Test your network speed' 46complete -f -n __fish_climate_has_no_argument -c climate -a local-ip -d'Retrieve your local ip address' 47complete -f -n __fish_climate_has_no_argument -c climate -a is-online -d'Verify if you\'re online' 48complete -f -n __fish_climate_has_no_argument -c climate -a public-ip -d'Retrieve your public ip address' 49complete -f -n __fish_climate_has_no_argument -c climate -a ports -d'List open ports' 50complete -f -n __fish_climate_has_no_argument -c climate -a hosts -d'Edit the hosts file' 51complete -f -n __fish_climate_has_no_argument -c climate -a http-server -d'http-server serving the current directory' 52complete -f -n __fish_climate_has_no_argument -c climate -a is-up -d'Determine if server is up' 53 54# SSH 55complete -f -n __fish_climate_has_no_argument -c climate -a download-file -d'Download file from server' 56complete -f -n __fish_climate_has_no_argument -c climate -a download-dir -d'Download dir from server' 57complete -n __fish_climate_has_no_argument -c climate -a upload -d'Upload to server' 58complete -f -n __fish_climate_has_no_argument -c climate -a ssh-mount -d'Mount a remote path' 59complete -n __fish_climate_has_no_argument -c climate -a ssh-unmount -d'Unmount a ssh mount' 60 61# git 62complete -f -c climate -n'__fish_is_git_repository; and __fish_climate_has_no_argument' -a undo-commit -d'Undo the latest commit' 63complete -f -c climate -n'__fish_is_git_repository; and __fish_climate_has_no_argument' -a reset-locel -d'Reset local repo to match remote' 64complete -f -c climate -n'__fish_is_git_repository; and __fish_climate_has_no_argument' -a pull-latest -d'Seset local repo to match remote' 65complete -f -c climate -n'__fish_is_git_repository; and __fish_climate_has_no_argument' -a list-branches -d'List all branches' 66complete -f -c climate -n'__fish_is_git_repository; and __fish_climate_has_no_argument' -a repo-size -d'Calculate the repo size' 67complete -f -c climate -n'__fish_is_git_repository; and __fish_climate_has_no_argument' -a user-stats -d'Calculate total contribution for a user' 68 69# Performance 70complete -f -n __fish_climate_has_no_argument -c climate -a overview -d'Display a performance overview' 71complete -f -n __fish_climate_has_no_argument -c climate -a memory -d'Find memory used' 72complete -f -n __fish_climate_has_no_argument -c climate -a disk -d'Find disk used' 73complete -f -n __fish_climate_has_no_argument -c climate -a get-pids -d'Get all PIDs for a process name' 74complete -f -n __fish_climate_has_no_argument -c climate -a trash-size -d'Find the trash size' 75complete -f -n __fish_climate_has_no_argument -c climate -a empty -d'Empty the trash'