This commit is contained in:
Geoffrey Frogeye 2017-07-26 09:43:04 +02:00
commit 7d065a8004
3 changed files with 30 additions and 9 deletions

View file

@ -27,6 +27,8 @@ $if mode=vi
Control-l: clear-screen Control-l: clear-screen
set keymap vi-insert set keymap vi-insert
# these are for vi-insert mode # these are for vi-insert mode
"jk": vi-movement-mode
"mù": vi-movement-mode
"\e[A": history-search-backward "\e[A": history-search-backward
"\e[B": history-search-forward "\e[B": history-search-forward
Control-l: clear-screen Control-l: clear-screen

View file

@ -48,7 +48,7 @@ if which pacman &> /dev/null; then
function installOne { # package function installOne { # package
pacman -Q $1 &> /dev/null pacman -Q $1 &> /dev/null
if [ $? == 1 ]; then if [ $? == 1 ]; then
sudo pacman -S $1 --noconfirm sudo pacman -S $1 --noconfirm --needed
fi fi
} }
function installFileOne { # file function installFileOne { # file
@ -174,7 +174,7 @@ if [ $TERMUX == 1 ]; then
inst tsu inst tsu
fi fi
fi fi
inst moreutils screen ncdu lsof htop proxytunnel pv curl wget sshfs netcat mosh bash-completion inst moreutils screen ncdu lsof htop proxytunnel pv curl wget sshfs netcat mosh bash-completion rsync
if [ $ARCH == 1 ]; then if [ $ARCH == 1 ]; then
inst gopass inst gopass
else else
@ -216,14 +216,22 @@ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall vim +PluginInstall +qall
# YouCompleteMe (vim plugin) # YouCompleteMe (vim plugin)
if [ $DEBIAN == 1 || $TERMUX == 1 ]; then if [ $ARCH == 1 ] && [ $ADMIN == 1 ]; then
if [ $EXTRA == 1 ]; then
altInst vim-youcompleteme-git
else
altInst vim-youcompleteme-core-git
fi
else
if [ $DEBIAN == 1 || $TERMUX == 1 ]; then
inst python-dev python3-dev inst python-dev python3-dev
fi fi
YCM_ARGS="" YCM_ARGS=""
if [ $TERMUX != 1 ]; then if [ $TERMUX != 1 ]; then
YCM_ARGS="$YCM_ARGS --clang-completer --tern-completer" YCM_ARGS="$YCM_ARGS --clang-completer --tern-completer"
fi
python $HOME/.vim/bundle/YouCompleteMe/install.py $YCM_ARGS
fi fi
python $HOME/.vim/bundle/YouCompleteMe/install.py $YCM_ARGS
# Common GUI # Common GUI

11
scripts/install-wsl Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Setups a WSL system the way I like it
# Remember to use the alwsl script on GitHub to install Arch Linux on WSL
# Use github:cbucher/console as a console and github:mintty/wsltty as a shell
# (%LOCALAPPDATA%/wsltty/bin/wsl-bridge) to avoid arrow keys bypassing
(cd /usr/share/i18n/charmaps/; sudo gunzip -k UTF8.gz)
echo "fr_FR.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
sudo locale-gen