From b9f41964c6bb7107d2c71674e6d90a4f97e210e5 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 4 Mar 2020 10:30:51 +0100 Subject: Fixed ycm compilation --- bash/.bashrc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc index b910453..cd6c966 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -217,6 +217,11 @@ if exists lpass; then cmp=${COMP_WORDS[COMP_CWORD]} search="$(sed 's/\\\ /___/g' <<< $cmp)" + + if [ -z "$search" ]; then + return + fi + items=$(lpass ls --format "%an$newline%aN" | sed "s/\ /___/g") for item in $items; do @@ -256,13 +261,6 @@ if exists pyenv; then export PATH="$PATH:$(pyenv root)/shims" fi -if exists xcrun; then - SDK_PATH="$(xcrun --show-sdk-path)" - PATH="$PATH:$(xcrun --show-sdk-path)/usr/bin" - export C_INCLUDE_PATH="$C_INCLUDE_PATH:$SDK_PATH/usr/include" - export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$SDK_PATH/usr/include" -fi - if exists python3; then alias pyhttpd="python3 -m http.server" fi -- cgit v1.2.3