Skip to content

Commit

Permalink
add more
Browse files Browse the repository at this point in the history
  • Loading branch information
solvery committed Aug 15, 2015
1 parent b3588e6 commit 2ec1594
Show file tree
Hide file tree
Showing 41 changed files with 20,740 additions and 0 deletions.
100 changes: 100 additions & 0 deletions bash/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -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

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
# . /etc/bash_completion
#fi
source ~/bashrc
41 changes: 41 additions & 0 deletions bash/.gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[user]
name = [email protected]
email = [email protected]
[core]
excludesfile = /root/.gitignore
editor = vim
autocrlf = false
[alias]
st = status
s = status -uno
d = diff
co = checkout
ci = commit
br = branch
ls = ls-files
svnup = svn rebase
svnci = svn dcommit
lo = log --date=iso --name-status
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[receive]
denyCurrentBranch = ignore
[color]
status = auto
branch = auto
diff = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
26 changes: 26 additions & 0 deletions bash/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
*.rpt
*.smsg
*.summary
*.done
*.tcl~

*.swo
*.swp
.svn
*.[oa]
*.log
*.fsdb
*bk
*bak
verdiLog
vcs.key
simv*
csrc
.vcsmx_rebuild
*.rc
tags
*.rej
*.orig
vc_hdrs.h
vcdplus.vpd
ucli.key
36 changes: 36 additions & 0 deletions bash/.gitk
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
set mainfont {helvetica 12}
set textfont {courier 12}
set uifont {helvetica 12 bold}
set tabstop 8
set findmergefiles 0
set maxgraphpct 50
set maxwidth 16
set cmitmode patch
set wrapcomment none
set autoselect 1
set autosellen 40
set showneartags 1
set hideremotes 0
set showlocalchanges 1
set datetimeformat {%Y-%m-%d %H:%M:%S}
set limitdiffs 1
set uicolor grey85
set want_ttk 1
set bgcolor white
set fgcolor black
set colors {green red blue magenta darkgrey brown orange}
set diffcolors {red "#00a000" blue}
set markbgcolor #e0e0ff
set diffcontext 3
set selectbgcolor gray85
set extdifftool meld
set perfile_attrs 0
set geometry(main) 1280x967+1593+4
set geometry(state) normal
set geometry(topwidth) 1276
set geometry(topheight) 690
set geometry(pwsash0) "791 2"
set geometry(pwsash1) "1075 2"
set geometry(botwidth) 828
set geometry(botheight) 257
set permviews {}
2 changes: 2 additions & 0 deletions bash/.vim/.VimballRecord
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vimwiki-2-0-stu.vba: call delete('/root/.vim/ftplugin/vimwiki.vim')|call delete('/root/.vim/autoload/vimwiki/diary.vim')|call delete('/root/.vim/autoload/vimwiki/u.vim')|call delete('/root/.vim/autoload/vimwiki/lst.vim')|call delete('/root/.vim/autoload/vimwiki/base.vim')|call delete('/root/.vim/autoload/vimwiki/style.css')|call delete('/root/.vim/autoload/vimwiki/markdown_base.vim')|call delete('/root/.vim/autoload/vimwiki/default.tpl')|call delete('/root/.vim/autoload/vimwiki/html.vim')|call delete('/root/.vim/autoload/vimwiki/tbl.vim')|call delete('/root/.vim/syntax/vimwiki_default.vim')|call delete('/root/.vim/syntax/vimwiki.vim')|call delete('/root/.vim/syntax/vimwiki_markdown_custom.vim')|call delete('/root/.vim/syntax/vimwiki_media.vim')|call delete('/root/.vim/syntax/vimwiki_markdown.vim')|call delete('/root/.vim/plugin/vimwiki.vim')|call delete('/root/.vim/doc/vimwiki.txt')
vimwiki-2-1.vba: call delete('/root/.vim/plugin/vimwiki.vim')|call delete('/root/.vim/doc/vimwiki.txt')|call delete('/root/.vim/syntax/vimwiki_markdown.vim')|call delete('/root/.vim/syntax/vimwiki_media.vim')|call delete('/root/.vim/syntax/vimwiki_default.vim')|call delete('/root/.vim/syntax/vimwiki.vim')|call delete('/root/.vim/syntax/vimwiki_markdown_custom.vim')|call delete('/root/.vim/autoload/vimwiki/style.css')|call delete('/root/.vim/autoload/vimwiki/tbl.vim')|call delete('/root/.vim/autoload/vimwiki/default.tpl')|call delete('/root/.vim/autoload/vimwiki/html.vim')|call delete('/root/.vim/autoload/vimwiki/markdown_base.vim')|call delete('/root/.vim/autoload/vimwiki/u.vim')|call delete('/root/.vim/autoload/vimwiki/diary.vim')|call delete('/root/.vim/autoload/vimwiki/base.vim')|call delete('/root/.vim/autoload/vimwiki/lst.vim')|call delete('/root/.vim/ftplugin/vimwiki.vim')
6 changes: 6 additions & 0 deletions bash/.vim/.netrwhist
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =4
let g:netrw_dirhist_1='/prj/card_p_45/fpga/sp45t.pcard.lvds_test/edk/pcores/blvds_slave_top_v1_00_a'
let g:netrw_dirhist_2='/trash/tmp/diveintopython_code'
let g:netrw_dirhist_3='/trash/tmp'
let g:netrw_dirhist_4='/trash/tmp/python/Demo/threads'
Loading

0 comments on commit 2ec1594

Please sign in to comment.