Răsfoiți Sursa

mp.raylu.net specifics

raylu 14 ani în urmă
părinte
comite
dcc3acaa17
5 a modificat fișierele cu 37 adăugiri și 11 ștergeri
  1. 6 5
      astylerc
  2. 1 1
      dircolors
  3. 2 0
      ssh/config
  4. 2 0
      vimrc
  5. 26 5
      zshrc

+ 6 - 5
astylerc

@@ -1,9 +1,10 @@
-indent=tab
-brackets=attach
+indent=spaces
+brackets=linux
+align-pointer=name
+lineend=linux
 pad-header
 unpad-paren
-keep-one-line-statements
 convert-tabs
-align-pointer=name
+indent-switches
+add-brackets
 suffix=none #do not retain original file
-lineend=linux

+ 1 - 1
dircolors

@@ -67,7 +67,7 @@ RESET 0 # reset to "normal" color
 DIR 01;34 # directory
 LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
  # numerical value, the color is as for the file pointed to.)
-MULTIHARDLINK 00 # regular file with more than one link
+#MULTIHARDLINK 00 # regular file with more than one link
 FIFO 40;33 # pipe
 SOCK 01;35 # socket
 DOOR 01;35 # door

+ 2 - 0
ssh/config

@@ -3,3 +3,5 @@ HashKnownHosts no
 ControlMaster auto
 ControlPath ~/.ssh/%r@%h:%p
 ControlPersist 1
+PasswordAuthentication no
+User live

+ 2 - 0
vimrc

@@ -10,6 +10,7 @@ set sidescroll=1
 set sidescrolloff=10
 set tabstop=4
 set shiftwidth=4
+set expandtab
 set wildmode=longest:list
 set background=dark
 set spelllang=en_us
@@ -62,6 +63,7 @@ autocmd FileType python set autoindent foldmethod=indent
 autocmd FileType sh set autoindent foldmethod=syntax
 autocmd FileType javascript,less,html set foldnestmax=3 formatoptions-=o
 autocmd FileType javascript,less set foldmethod=indent
+autocmd FileType javascript set foldlevel=2
 autocmd FileType tex,latex set wrap showbreak=+ spell makeprg=pdflatex\ -interaction=nonstopmode\ %
 autocmd FileType sml set autoindent
 autocmd FileType man set nomod nolist readonly

+ 26 - 5
zshrc

@@ -68,6 +68,25 @@ export EDITOR=vim
 export MANPAGER="/bin/sh -c \"col -bx | vim -c 'set ft=man' -\""
 export GREP_COLORS='ms=01;36:mc=01;31:sl=:cx=:fn=35:ln=33:bn=33:se=01;34'
 
+SSH_ENV="$HOME/.ssh/environment"
+function start_agent {
+    ssh-agent > "$SSH_ENV"
+    chmod 600 "$SSH_ENV"
+    . "$SSH_ENV" > /dev/null
+    ssh-add
+}
+if [ -f "$SSH_ENV" ]; then
+    . "$SSH_ENV" > /dev/null
+fi
+if [ -n "$SSH_AGENT_PID" ]; then
+    ps ${SSH_AGENT_PID} > /dev/null
+    if [ $? -ne 0 ]; then
+        start_agent
+    fi
+else
+    start_agent
+fi
+
 alias ls='ls --color=auto -hv --group-directories-first'
 alias ll='ls -l'
 alias l.='ls -Ad .*'
@@ -80,18 +99,19 @@ alias mp='~/mplayer/mplayer/mplayer'
 alias manmp='man -l ~/mplayer/mplayer/DOCS/man/en/mplayer.1'
 alias mencoder='~/mplayer/mplayer/mencoder'
 alias x264='~/x264/x264'
-alias gil='git log --graph --abbrev-commit --stat -C --decorate --date=local'
+alias gil='TZ=America/Los_Angeles git log --graph --abbrev-commit --stat -C --decorate --date=local'
 alias gib='git branch -a'
 alias gis='git status'
-alias gid='git diff -C --date=local'
-alias giw='git show -C --date=local --decorate'
+alias gid='TZ=America/Los_Angeles git diff -C --date=local'
+alias giw='TZ=America/Los_Angeles git show -C --date=local --decorate'
 alias gic='git checkout'
-alias gibl='gil master..HEAD'
+alias gibl='TZ=America/Los_Angeles gil master..HEAD'
 alias class='xprop -notype WM_CLASS'
 alias tree='tree -AvL 10'
 alias vil='vi *(.om[1])'
 alias dt='gnome-terminal --hide-menubar'
 alias sudovi='sudo vi -N -u /home/raylu/.vimrc'
+alias cda='cd ~/analytics'
 function cl() {
 	if [ $# = 0 ]; then
 		cd && ls
@@ -106,7 +126,8 @@ function pdf() {
 export GOPATH=$HOME
 export PYTHONSTARTUP=$HOME/.pystartup.py
 
-PATH=$PATH:$HOME/go/bin:/sbin:/usr/sbin
+VIRTUAL_ENV="/home/raylu/env"
+PATH=$VIRTUAL_ENV/bin:$PATH:/sbin:/usr/sbin
 if [ -d $HOME/bin ]; then
 	PATH=$HOME/bin:$PATH
 fi