Merge branch 'master' of ssh://git.jonathanh.co.uk:2222/jab2870/dotfiles
This commit is contained in:
commit
5af7269920
4 changed files with 23 additions and 3 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -73,3 +73,6 @@
|
||||||
[submodule "nvim/.config/nvim/pack/bundle/opt/vim-snippets"]
|
[submodule "nvim/.config/nvim/pack/bundle/opt/vim-snippets"]
|
||||||
path = nvim/.config/nvim/pack/bundle/opt/vim-snippets
|
path = nvim/.config/nvim/pack/bundle/opt/vim-snippets
|
||||||
url = https://github.com/honza/vim-snippets
|
url = https://github.com/honza/vim-snippets
|
||||||
|
[submodule "nvim/.config/nvim/pack/bundle/opt/lexima.vim"]
|
||||||
|
path = nvim/.config/nvim/pack/bundle/opt/lexima.vim
|
||||||
|
url = https://github.com/cohama/lexima.vim
|
||||||
|
|
|
@ -432,6 +432,7 @@ usage(){
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-h, --help Display this help and exit
|
-h, --help Display this help and exit
|
||||||
|
-k, --insecure Ignores certificate errors
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -472,11 +473,13 @@ done
|
||||||
set -- "${options[@]}"
|
set -- "${options[@]}"
|
||||||
unset options
|
unset options
|
||||||
|
|
||||||
|
insecure=""
|
||||||
|
|
||||||
# Read the options and set stuff
|
# Read the options and set stuff
|
||||||
while [[ $1 = -?* ]]; do
|
while [[ $1 = -?* ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help) usage; exit;;
|
-h|--help) usage; exit;;
|
||||||
|
-k|--insecure) insecure="-k" ;;
|
||||||
--) shift; break ;;
|
--) shift; break ;;
|
||||||
*) die "invalid option: '$1'." ;;
|
*) die "invalid option: '$1'." ;;
|
||||||
esac
|
esac
|
||||||
|
@ -493,7 +496,7 @@ url="${args[0]}"
|
||||||
if [ "$url" = "-" ]; then
|
if [ "$url" = "-" ]; then
|
||||||
headers="$(cat -)"
|
headers="$(cat -)"
|
||||||
else
|
else
|
||||||
headers="$(curl -s -I "$url")"
|
headers="$(curl -s -I $insecure "$url")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
missingHeaders="x-frame-options
|
missingHeaders="x-frame-options
|
||||||
|
@ -533,7 +536,7 @@ while read -r line; do
|
||||||
fi
|
fi
|
||||||
done<<<"$(echo "$headers" | sed '1d')" # We don't want the initial http banner
|
done<<<"$(echo "$headers" | sed '1d')" # We don't want the initial http banner
|
||||||
|
|
||||||
echo "$missingHeaders" | while read -r line; do
|
echo -n "$missingHeaders" | while read -r line; do
|
||||||
echo -e "${RED}$line${NC}"
|
echo -e "${RED}$line${NC}"
|
||||||
functionName="test_$line"
|
functionName="test_$line"
|
||||||
"$functionName" >> "$tmpfile"
|
"$functionName" >> "$tmpfile"
|
||||||
|
|
|
@ -6,20 +6,27 @@ if has('packages')
|
||||||
packadd! AnsiEsc.vim
|
packadd! AnsiEsc.vim
|
||||||
packadd! fzf.vim
|
packadd! fzf.vim
|
||||||
packadd! gruvbox
|
packadd! gruvbox
|
||||||
|
packadd! lexima.vim
|
||||||
|
packadd! ultisnips
|
||||||
packadd! vim-fugitive
|
packadd! vim-fugitive
|
||||||
packadd! vim-json
|
packadd! vim-json
|
||||||
packadd! vim-less
|
packadd! vim-less
|
||||||
packadd! vim-repeat
|
packadd! vim-repeat
|
||||||
|
packadd! vim-snippets
|
||||||
packadd! vim-surround
|
packadd! vim-surround
|
||||||
packadd! vim-tridactyl
|
packadd! vim-tridactyl
|
||||||
packadd! vim-vinegar
|
packadd! vim-vinegar
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
packadd! nvim-lspconfig
|
|
||||||
packadd! deoplete.nvim
|
packadd! deoplete.nvim
|
||||||
packadd! deoplete-abook
|
packadd! deoplete-abook
|
||||||
packadd! deoplete-lsp
|
packadd! deoplete-lsp
|
||||||
packadd! deoplete-notmuch
|
packadd! deoplete-notmuch
|
||||||
packadd! firenvim
|
packadd! firenvim
|
||||||
|
lua <<EOF
|
||||||
|
if ( vim.lsp ~= nil ) then
|
||||||
|
vim.cmd "packadd! nvim-lspconfig"
|
||||||
|
end
|
||||||
|
EOF
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -28,3 +35,9 @@ endif
|
||||||
filetype indent plugin on "
|
filetype indent plugin on "
|
||||||
" Enables filetype specific syntaxs
|
" Enables filetype specific syntaxs
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
let g:UltiSnipsExpandTrigger="<tab>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger="<tab>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger="<S-tab>"
|
||||||
|
|
||||||
|
|
||||||
|
|
1
nvim/.config/nvim/pack/bundle/opt/lexima.vim
Submodule
1
nvim/.config/nvim/pack/bundle/opt/lexima.vim
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 89bf4dc13539131a29cf938074b3f1ce9d000bfd
|
Loading…
Add table
Add a link
Reference in a new issue