some more fixes that would work in fb devservers.
This commit is contained in:
@@ -34,27 +34,27 @@ set -o vi
|
|||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export LESS=-R
|
export LESS=-R
|
||||||
|
|
||||||
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||||
#
|
##
|
||||||
# User specific environment and startup programs
|
## User specific environment and startup programs
|
||||||
#
|
##
|
||||||
|
|
||||||
if [ -e $HOME/bin ]; then
|
#if [ -e $HOME/bin ]; then
|
||||||
export PATH=$HOME/bin:$PATH
|
# export PATH=$HOME/bin:$PATH
|
||||||
fi
|
#fi
|
||||||
MYSCRIPTS=$HOME/devel/scripts
|
#export MYSCRIPTS=$HOME/devel/scripts
|
||||||
if [ -e $MYSCRIPTS/bin ]; then
|
#if [ -e $MYSCRIPTS/bin ]; then
|
||||||
export PATH=$MYSCRIPTS/bin:$PATH
|
# export PATH=$MYSCRIPTS/bin:$PATH
|
||||||
fi
|
#fi
|
||||||
MYCFG=${MYSCRIPTS}/config
|
#export MYCFG=${MYSCRIPTS}/config
|
||||||
|
|
||||||
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|
||||||
# Set command prompt
|
## Set command prompt
|
||||||
[ -x ${MYCFG}/.profile.prompt ] && source ${MYCFG}/.profile.prompt
|
#[ -x ${MYCFG}/.profile.prompt ] && source ${MYCFG}/.profile.prompt
|
||||||
[ -x ${MYCFG}/.profile.dircolor ] && source ${MYCFG}/.profile.dircolor
|
#[ -x ${MYCFG}/.profile.dircolor ] && source ${MYCFG}/.profile.dircolor
|
||||||
[ -x ${MYCFG}/.profile.completion ] && source ${MYCFG}/.profile.completion
|
#[ -x ${MYCFG}/.profile.completion ] && source ${MYCFG}/.profile.completion
|
||||||
[ -x ${MYCFG}/.profile.dev ] && source ${MYCFG}/.profile.dev
|
#[ -x ${MYCFG}/.profile.dev ] && source ${MYCFG}/.profile.dev
|
||||||
[ -x ${MYCFG}/.profile.aliases ] && source ${MYCFG}/.profile.aliases
|
#[ -x ${MYCFG}/.profile.aliases ] && source ${MYCFG}/.profile.aliases
|
||||||
|
|
||||||
#
|
#
|
||||||
# Clean error level.
|
# Clean error level.
|
||||||
|
|||||||
@@ -66,10 +66,11 @@ shopt -s checkwinsize
|
|||||||
if [ -e $HOME/bin ]; then
|
if [ -e $HOME/bin ]; then
|
||||||
export PATH=$HOME/bin:$PATH
|
export PATH=$HOME/bin:$PATH
|
||||||
fi
|
fi
|
||||||
MYSCRIPTS=$HOME/devel/scripts
|
export MYSCRIPTS=$HOME/devel/scripts
|
||||||
if [ -e $MYSCRIPTS/bin ]; then
|
if [ -e $MYSCRIPTS/bin ]; then
|
||||||
export PATH=$MYSCRIPTS/bin:$PATH
|
export PATH=$MYSCRIPTS/bin:$PATH
|
||||||
fi
|
fi
|
||||||
|
export MYCFG=${MYSCRIPTS}/config
|
||||||
|
|
||||||
#
|
#
|
||||||
# VIM
|
# VIM
|
||||||
@@ -77,6 +78,14 @@ fi
|
|||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export LESS=-R
|
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.
|
# Run local settings.
|
||||||
|
|||||||
@@ -152,5 +152,11 @@ if [ -n "$PS1" ]; then
|
|||||||
# calculate prompt length. The text is set through PROMPT_COMMAND
|
# calculate prompt length. The text is set through PROMPT_COMMAND
|
||||||
PS1+="\[${c_reset}\]\$ " # reset colors and print $
|
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
|
fi
|
||||||
|
|
||||||
|
|||||||
14
vim/vimrc
14
vim/vimrc
@@ -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
|
" Grep options affect GNU grep. The intend is that greps not supporting the
|
||||||
" options will continue working without options.
|
" 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=tags --exclude=*.o --exclude=*.log'
|
||||||
let $GREP_OPTIONS.=' --exclude=*.swp'
|
let $GREP_OPTIONS.=' --exclude=*.swp'
|
||||||
let $GREP_OPTIONS.=' --exclude-dir=llcalc* --exclude-dir=00*'
|
let $GREP_OPTIONS.=' --exclude-dir=llcalc* --exclude-dir=00*'
|
||||||
@@ -388,12 +388,12 @@ noremap <Down> gj
|
|||||||
"
|
"
|
||||||
" Working with tabs especially if using console version.
|
" Working with tabs especially if using console version.
|
||||||
"
|
"
|
||||||
nnoremap th :tabfirst<CR>
|
" nnoremap th :tabfirst<CR>
|
||||||
nnoremap tj :tabnext<CR>
|
" nnoremap tj :tabnext<CR>
|
||||||
nnoremap tk :tabprev<CR>
|
" nnoremap tk :tabprev<CR>
|
||||||
nnoremap tl :tablast<CR>
|
" nnoremap tl :tablast<CR>
|
||||||
nnoremap tm :tabm<Space>
|
" nnoremap tm :tabm<Space>
|
||||||
nnoremap td :tabclose<CR>
|
" nnoremap td :tabclose<CR>
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Plugins
|
" Plugins
|
||||||
|
|||||||
Reference in New Issue
Block a user