Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env zsh
- mkdir -pv ~/.scripts/bash
- echo 'export PATH=$HOME/.scripts/bash:$PATH' >> ~/.zshrc
- export PATH=$HOME/.scripts/bash/:$PATH
- seteditor="https://pastebin.com/raw/nb0Fi3d7"
- curl -o ~/.scripts/bash/set-editor $seteditor
- chmod u+x ~/.scripts/bash/set-editor
- echo -n "What is your preferred text editor? (full application name)\n> "
- read editor
- ~/.scripts/bash/set-editor "$editor"
- micro="https://pastebin.com/raw/kGTHt6WJ"
- temp=$(mktemp)
- [ $? -eq 0 ] || exit 1
- [ -f $temp ] || exit 1
- trap 'rm -f "$temp"' SIGTERM SIGINT EXIT
- curl -o $temp $micro
- source $temp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement