initial commit of .vimrc, .profile, and .screenrc

This commit is contained in:
Alan Orth 2010-01-28 22:27:08 +03:00
parent fc9f74d9ad
commit e3d1e315d4
3 changed files with 70 additions and 0 deletions

27
.profile Normal file
View File

@ -0,0 +1,27 @@
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
#shell settings
# PS1 with the escape sequence for dynamic titles in screen
export PS1='\[\033k\033\\\][\u@\h: \w]\$ '
export PATH="/usr/local/bin:/usr/local/sbin:/opt/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/games/bin:/opt/bin:/opt/sbin"
export EDITOR=/usr/bin/vim
export PAGER=/usr/bin/less
# don't exit when accidentally pressing ^D
set -o ignoreeof
# append, rather than overwrite history files.
# useful for when multiple bash sessions are running.
shopt -s histappend
#aliases
alias ls='/bin/ls --color=always'
alias l='/bin/ls -l --color=always'
alias less='less -R' # preserves colors in `less`
alias scpresume='rsync --partial --progress --rsh=ssh'

30
.screenrc Normal file
View File

@ -0,0 +1,30 @@
# don't display the copyright page
startup_message off
defscrollback 2048
vbell on
# default shell for new screen windows.
# The "-" before the shell makes it a login shell.
shell -/bin/bash
# default title for new window.
# the "$ |" part is the search pattern screen looks for in the prompt
# so it can do dynamic titles.
shelltitle '$ |bash'
#dynamic title for su process (binded to "<Ctrl-A> r")
bind r screen -t '# |root:' sudo su -
#open top into another frame (binded to "<Ctrl-A> t")
#bind t screen -t top 9 nice top
#Display date and other information in colorred window
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
#hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %{..Y} %Y/%m/%d %C:%s%A "
#Display date and other information in caption on bottom
#caption always "%{= kf}%5n %t (%H) %=%Y-%m-%d %c:%s "

13
.vimrc Normal file
View File

@ -0,0 +1,13 @@
set nu
set ts=4
set sw=4
set bs=2
set bg=dark
set paste
set mouse=v " some vim defaults to mouse=a, which sucks for copying and pasting in Xorg
syntax on
if version >= 600
filetype on " enable file type detection
filetype plugin on " enable file type plugins
filetype indent on " enable file type indents
endif