Alter bashrc, vimrc
This commit is contained in:
parent
19bf7ce2cb
commit
6bd5a143a3
2 changed files with 42 additions and 36 deletions
|
@ -6,38 +6,40 @@
|
||||||
# /bin/bash "$HOME/.at_login"
|
# /bin/bash "$HOME/.at_login"
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
if [ -n "$PS1" ]; then
|
||||||
[ -z "$PS1" ] && return
|
# don't put duplicate lines in the history. See bash(1) for more options
|
||||||
|
# ... or force ignoredups and ignorespace
|
||||||
|
HISTCONTROL=ignoredups:ignorespace
|
||||||
|
|
||||||
# don't put duplicate lines in the history. See bash(1) for more options
|
# append to the history file, don't overwrite it
|
||||||
# ... or force ignoredups and ignorespace
|
shopt -s histappend
|
||||||
HISTCONTROL=ignoredups:ignorespace
|
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
shopt -s histappend
|
HISTSIZE=1000
|
||||||
|
HISTFILESIZE=2000
|
||||||
|
|
||||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
# check the window size after each command and, if necessary,
|
||||||
HISTSIZE=1000
|
# update the values of LINES and COLUMNS.
|
||||||
HISTFILESIZE=2000
|
shopt -s checkwinsize
|
||||||
|
|
||||||
# check the window size after each command and, if necessary,
|
# make less more friendly for non-text input files, see lesspipe(1)
|
||||||
# update the values of LINES and COLUMNS.
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||||
shopt -s checkwinsize
|
|
||||||
|
|
||||||
# make less more friendly for non-text input files, see lesspipe(1)
|
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
||||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
. /etc/bash_completion
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -f ~/.bash_ps1 ] && source ~/.bash_ps1
|
||||||
|
|
||||||
|
# Autojump
|
||||||
|
[ -f /etc/profile.d/autojump.bash ] && source /etc/profile.d/autojump.bash
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -f ~/.bash_sshagent ] && source ~/.bash_sshagent
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
[ -f ~/.bash_aliases ] && source ~/.bash_aliases
|
[ -f ~/.bash_aliases ] && source ~/.bash_aliases
|
||||||
|
|
||||||
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
|
|
||||||
. /etc/bash_completion
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -f ~/.bash_ps1 ] && source ~/.bash_ps1
|
|
||||||
|
|
||||||
[ -f ~/.bash_sshagent ] && source ~/.bash_sshagent
|
|
||||||
|
|
||||||
export GTK_IM_MODULE=xim
|
export GTK_IM_MODULE=xim
|
||||||
|
|
||||||
export EDITOR=/usr/bin/vim
|
export EDITOR=/usr/bin/vim
|
||||||
|
@ -45,16 +47,13 @@ export EDITOR=/usr/bin/vim
|
||||||
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
||||||
export ANDROID_HOME=/opt/android-sdk
|
export ANDROID_HOME=/opt/android-sdk
|
||||||
|
|
||||||
export PATH="$PATH:/home/tobast/bin"
|
export PATH="$PATH:$HOME/bin"
|
||||||
export MANPATH="$MANPATH:$HOME/local/man"
|
export MANPATH="$MANPATH:$HOME/local/man"
|
||||||
|
|
||||||
export TERMINAL="/usr/bin/terminator"
|
export TERMINAL="/usr/bin/terminator"
|
||||||
|
|
||||||
export LC_REALUSER='tbastian'
|
export LC_REALUSER='tbastian'
|
||||||
|
|
||||||
# Autojump
|
|
||||||
[ -f /etc/profile.d/autojump.bash ] && source /etc/profile.d/autojump.bash
|
|
||||||
|
|
||||||
# Opam
|
# Opam
|
||||||
which opam > /dev/null 2>&1 && [ -d ~/.opam ] && eval $(opam config env)
|
which opam > /dev/null 2>&1 && [ -d ~/.opam ] && eval $(opam config env)
|
||||||
|
|
||||||
|
@ -67,3 +66,10 @@ then
|
||||||
export PATH="$PATH:$cur_path"
|
export PATH="$PATH:$cur_path"
|
||||||
fi
|
fi
|
||||||
unset gempath
|
unset gempath
|
||||||
|
|
||||||
|
# pip
|
||||||
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
|
|
||||||
|
# Go
|
||||||
|
export GOPATH="$HOME/.go"
|
||||||
|
export PATH="$PATH:$HOME/.go/bin"
|
||||||
|
|
18
files/.vimrc
18
files/.vimrc
|
@ -84,15 +84,15 @@ filetype plugin indent on " required
|
||||||
" set statusline+=%#warningmsg#
|
" set statusline+=%#warningmsg#
|
||||||
" set statusline+=%{SyntasticStatuslineFlag()}
|
" set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
" set statusline+=%*
|
" set statusline+=%*
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
"let g:syntastic_always_populate_loc_list = 1
|
||||||
"let g:syntastic_auto_loc_list = 1
|
""let g:syntastic_auto_loc_list = 1
|
||||||
let g:syntastic_check_on_open = 1
|
"let g:syntastic_check_on_open = 1
|
||||||
let g:syntastic_check_on_wq = 0
|
"let g:syntastic_check_on_wq = 0
|
||||||
let g:syntastic_enable_signs=1
|
"let g:syntastic_enable_signs=1
|
||||||
let g:syntastic_cpp_check_header = 1
|
"let g:syntastic_cpp_check_header = 1
|
||||||
let g:syntastic_cpp_remove_include_errors = 1
|
"let g:syntastic_cpp_remove_include_errors = 1
|
||||||
let g:syntastic_quiet_messages = {"regex":'pragma once in'}
|
"let g:syntastic_quiet_messages = {"regex":'pragma once in'}
|
||||||
"let g:syntastic_auto_jump=1
|
""let g:syntastic_auto_jump=1
|
||||||
|
|
||||||
"" LaTeX
|
"" LaTeX
|
||||||
let g:syntastic_tex_checkers = [ 'chktex' ]
|
let g:syntastic_tex_checkers = [ 'chktex' ]
|
||||||
|
|
Loading…
Reference in a new issue