https://github.com/litencatt/croxy
Curl commands history management ruby script.
https://github.com/litencatt/croxy
curl ruby script
Last synced: about 2 months ago
JSON representation
Curl commands history management ruby script.
- Host: GitHub
- URL: https://github.com/litencatt/croxy
- Owner: litencatt
- License: mit
- Created: 2018-05-06T08:55:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T10:31:09.000Z (about 8 years ago)
- Last Synced: 2025-03-28T14:36:00.934Z (about 1 year ago)
- Topics: curl, ruby, script
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
### Setup
```rb
$ ./setup
#=> copy croxy to /usr/loca/bin
```
### Run
```
$ croxy http://localhost:3000
#=> create ~/.croxy_history and save executed curl commands
```
### Use with peco
```
# ~/.zshrc
function croxy-peco () {
local selected_command=$(croxy -l | peco)
if [ -n "$selected_command" ]; then
BUFFER="croxy ${selected_command}"
zle accept-line
fi
zle clear-screen
}
zle -N croxy-peco
bindkey "^@" croxy-peco
```