some more fixes that would work in fb devservers.

This commit is contained in:
2021-06-25 03:12:38 -07:00
parent 4609a035af
commit 687999be1a
4 changed files with 42 additions and 27 deletions

View File

@@ -34,27 +34,27 @@ set -o vi
export EDITOR=vim
export LESS=-R
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#
# User specific environment and startup programs
#
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
##
## User specific environment and startup programs
##
if [ -e $HOME/bin ]; then
export PATH=$HOME/bin:$PATH
fi
MYSCRIPTS=$HOME/devel/scripts
if [ -e $MYSCRIPTS/bin ]; then
export PATH=$MYSCRIPTS/bin:$PATH
fi
MYCFG=${MYSCRIPTS}/config
#if [ -e $HOME/bin ]; then
# export PATH=$HOME/bin:$PATH
#fi
#export MYSCRIPTS=$HOME/devel/scripts
#if [ -e $MYSCRIPTS/bin ]; then
# export PATH=$MYSCRIPTS/bin:$PATH
#fi
#export MYCFG=${MYSCRIPTS}/config
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Set command prompt
[ -x ${MYCFG}/.profile.prompt ] && source ${MYCFG}/.profile.prompt
[ -x ${MYCFG}/.profile.dircolor ] && source ${MYCFG}/.profile.dircolor
[ -x ${MYCFG}/.profile.completion ] && source ${MYCFG}/.profile.completion
[ -x ${MYCFG}/.profile.dev ] && source ${MYCFG}/.profile.dev
[ -x ${MYCFG}/.profile.aliases ] && source ${MYCFG}/.profile.aliases
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Set command prompt
#[ -x ${MYCFG}/.profile.prompt ] && source ${MYCFG}/.profile.prompt
#[ -x ${MYCFG}/.profile.dircolor ] && source ${MYCFG}/.profile.dircolor
#[ -x ${MYCFG}/.profile.completion ] && source ${MYCFG}/.profile.completion
#[ -x ${MYCFG}/.profile.dev ] && source ${MYCFG}/.profile.dev
#[ -x ${MYCFG}/.profile.aliases ] && source ${MYCFG}/.profile.aliases
#
# Clean error level.

View File

@@ -66,10 +66,11 @@ shopt -s checkwinsize
if [ -e $HOME/bin ]; then
export PATH=$HOME/bin:$PATH
fi
MYSCRIPTS=$HOME/devel/scripts
export MYSCRIPTS=$HOME/devel/scripts
if [ -e $MYSCRIPTS/bin ]; then
export PATH=$MYSCRIPTS/bin:$PATH
fi
export MYCFG=${MYSCRIPTS}/config
#
# VIM
@@ -77,6 +78,14 @@ fi
export EDITOR=vim
export LESS=-R
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Set command prompt
[ -x ${MYCFG}/.profile.prompt ] && source ${MYCFG}/.profile.prompt
[ -x ${MYCFG}/.profile.dircolor ] && source ${MYCFG}/.profile.dircolor
[ -x ${MYCFG}/.profile.completion ] && source ${MYCFG}/.profile.completion
[ -x ${MYCFG}/.profile.dev ] && source ${MYCFG}/.profile.dev
[ -x ${MYCFG}/.profile.aliases ] && source ${MYCFG}/.profile.aliases
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#
# Run local settings.

View File

@@ -152,5 +152,11 @@ if [ -n "$PS1" ]; then
# calculate prompt length. The text is set through PROMPT_COMMAND
PS1+="\[${c_reset}\]\$ " # reset colors and print $
}
if [ -n "$BASH_VERSION" ]; then
# shopt -s checkwinsize
export -f __prompt_command
export -f term_colors
fi
fi

View File

@@ -359,7 +359,7 @@ map <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR>
" Grep options affect GNU grep. The intend is that greps not supporting the
" options will continue working without options.
"
let $GREP_OPTIONS.=' --exclude-dir=.git --exclude-dir=.svn'
let $GREP_OPTIONS.=' --exclude-dir=.git --exclude-dir=.svn --exclude-dir=.hg'
let $GREP_OPTIONS.=' --exclude=tags --exclude=*.o --exclude=*.log'
let $GREP_OPTIONS.=' --exclude=*.swp'
let $GREP_OPTIONS.=' --exclude-dir=llcalc* --exclude-dir=00*'
@@ -388,12 +388,12 @@ noremap <Down> gj
"
" Working with tabs especially if using console version.
"
nnoremap th :tabfirst<CR>
nnoremap tj :tabnext<CR>
nnoremap tk :tabprev<CR>
nnoremap tl :tablast<CR>
nnoremap tm :tabm<Space>
nnoremap td :tabclose<CR>
" nnoremap th :tabfirst<CR>
" nnoremap tj :tabnext<CR>
" nnoremap tk :tabprev<CR>
" nnoremap tl :tablast<CR>
" nnoremap tm :tabm<Space>
" nnoremap td :tabclose<CR>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugins