This file contains 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
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
mkdir -p /home/ec2-user/.config/nvim | |
wget -O /home/ec2-user/.config/nvim/init.vim https://gist.githubusercontent.com/grebneerg/94db079350db96a62996153a428a233b/raw/fed9d2bfa3bde233108b05892f05cf6811c9dbf2/init.vim |
This file contains 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
syntax on | |
set relativenumber number | |
nnoremap <Space> <nop> | |
let mapleader = " " | |
filetype indent on | |
filetype plugin on | |
filetype plugin indent on | |
set autoindent |
This file contains 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
function discord_send | |
set msg (string join '' '{"content": "' (echo $argv[1]) '"}') | |
# echo $msg | |
curl -H "Content-Type: application/json" -X POST -d $msg <webhook url> | |
end |