From 57493d20eb12cf9860f72de382c98defee44dd6a Mon Sep 17 00:00:00 2001 From: waldek Date: Fri, 26 Aug 2022 16:59:01 +0200 Subject: [PATCH] fixes case insensitive xonsh and full install --- bootstrap.sh | 6 ++++-- xonshrc | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index a2bdf5f..c34d5a6 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -4,13 +4,15 @@ NAME="waldek" EMAIL="waldek@mailbox.org" DEFAULT_SHELL="xonsh" DEPENDENCIES_APT="zsh git tig tmux vim-nox htop python3 python3-pip" -DEPENDENCIES_PIP="xonsh" +DEPENDENCIES_PIP="xonsh[full]" SOURCES_DIR=~/sources/gitea_irisib BOOTSTRAP_DIR=~/sources/gitea_irisib/bootstrap CUSTOM_ZSHRC=$BOOTSTRAP_DIR/custom.zsh CUSTOM_ENV=$BOOTSTRAP_DIR/env.sh +LOG=/dev/null + if [[ -z $(groups | grep sudo) ]]; then echo "you need to be in the sudo group to run this script..." exit 1 @@ -123,7 +125,7 @@ function symlink_config_files () { function install_pip_dependencies () { for dep in $DEPENDENCIES_PIP; do - sudo pip3 install --upgrade $dep > $LOG && echo "installed $dep" + pip3 install --upgrade "$dep" > $LOG && echo "installed $dep" done echo "--- ${FUNCNAME[0]} done" } diff --git a/xonshrc b/xonshrc index 9ba3cf5..7ecb868 100644 --- a/xonshrc +++ b/xonshrc @@ -2,7 +2,6 @@ import os # set where oh-my-xonsh lives if not 'OMX_HOME' in ${...}: $OMX_HOME = p"~/.config/xonsh/oh-my-xonsh" - # clone omx if needed if not pf"{$OMX_HOME}".exists(): git clone --depth=1 https://github.com/oh-my-xonsh/oh-my-xonsh $OMX_HOME @@ -35,4 +34,5 @@ omx.plugins = [ omx.init() $XONSH_COLOR_STYLE = "solarized-dark" +$CASE_SENSITIVE_COMPLETIONS = False