From e3d1e315d4a23d58e310968f517c20aa8cffeb0a Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 28 Jan 2010 22:27:08 +0300 Subject: [PATCH] initial commit of .vimrc, .profile, and .screenrc --- .profile | 27 +++++++++++++++++++++++++++ .screenrc | 30 ++++++++++++++++++++++++++++++ .vimrc | 13 +++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 .profile create mode 100644 .screenrc create mode 100644 .vimrc diff --git a/.profile b/.profile new file mode 100644 index 0000000..d9fd38a --- /dev/null +++ b/.profile @@ -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' diff --git a/.screenrc b/.screenrc new file mode 100644 index 0000000..394ee06 --- /dev/null +++ b/.screenrc @@ -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 " r") +bind r screen -t '# |root:' sudo su - + +#open top into another frame (binded to " 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 " diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..1952df2 --- /dev/null +++ b/.vimrc @@ -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