Last active
October 13, 2023 17:18
-
-
Save henkin/3449eaef9055fa5267e9dce27066039e to your computer and use it in GitHub Desktop.
zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This is some wild shit I was working on to link shell and browser | |
first-tab() { | |
if [[ $#BUFFER == 0 ]]; then | |
curl http://localhost:15933 | |
BUFFER="ph " | |
CURSOR=3 | |
zle list-choices | |
else | |
zle expand-or-complete | |
fi | |
} | |
zle -N first-tab | |
bindkey '^I' first-tab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment