summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-07-30 15:12:46 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-07-30 15:12:46 +0100
commitfc508505eff0f735e789bfb06aefc1725ed02f05 (patch)
treeb82c1b9051471d7d0aa073139928f94c35a77dc5
xdefaults and zshrc
-rwxr-xr-xXdefaults42
-rwxr-xr-xzshrc269
2 files changed, 311 insertions, 0 deletions
diff --git a/Xdefaults b/Xdefaults
new file mode 100755
index 0000000..abdb273
--- /dev/null
+++ b/Xdefaults
@@ -0,0 +1,42 @@
1Xft.hinting: true
2Xft.hintstyle: hintsfull
3Xft.antialias: true
4Xft.rgba: rgb
5Xft.dpi: 96
6Xcursor.theme: Ecliz_Full
7Xcursor.theme_core: Ecliz_Full
8XTerm*termName: rxvt
9XTerm*faceName: xft:Bitstream Vera Sans Mono
10XTerm*faceSize: 10
11XTerm*jumpScroll: false
12XTerm*multiScroll: true
13XTerm*scrollBar: false
14XTerm*rightScrollBar: false
15XTerm*saveLines: 30000
16XTerm*geometry: 70x20
17XTerm*borderLess: true
18XTerm*foreground: white
19XTerm*background: black
20URxvt*termName: rxvt-unicode
21URxvt*font: xft:Bitstream Vera Sans Mono
22URxvt*internalBorder: 0
23URxvt*scrollBar: false
24URxvt*borderLess: true
25URxvt*foreground: #ffffff
26URxvt*background: #000000
27URxvt*saveLines: 30000
28URxvt*geometry: 80x18
29URxvt*scrollTtyOutput: false
30URxvt*scrollKeypress: true
31URxvt*scrollWithBuffer: true
32URxvt*searchable-scrollback: M-s
33URxvt*cutchars: ()*,<>[]{}|
34URxvt*pointerBlankDelay: 10
35URxvt*perl-ext-common: option-popup,selection-popup,matcher,default,tabbed
36URxvt*urlLauncher: opera
37yeahconsole*term:urxvtc
38yeahconsole*restart: 1
39yeahconsole*toggleKey: Alt+grave
40yeahconsole*consoleHeight: 18
41yeahconsole*handleColor: blue5
42yeahconsole*aniDelay: 0
diff --git a/zshrc b/zshrc
new file mode 100755
index 0000000..9300923
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,269 @@
1#export PATH="${PATH}:$HOME/src/arcanist/arcanist/bin"
2#export ASAN_OPTIONS=abort_on_error=1
3export CC="ccache gcc-4.8"
4ulimit -c unlimited
5alias j6='make -j -s'
6alias j6='make -j6 -s V=0'
7alias j='make -j -s'
8alias gst='git status'
9alias sst='svn status'
10alias vg='valgrind --suppressions=~/.valgrind.supp --leak-check=full --show-reachable=yes --leak-resolution=high --track-origins=yes --num-callers=50'
11alias vg2='valgrind --suppressions=~/.valgrind.supp --leak-check=full --show-reachable=no --leak-resolution=high --undef-value-errors=no --num-callers=50'
12alias drd='valgrind --tool=drd --num-callers=40 --trace-children=yes'
13alias kk='killall -9'
14alias lh='ls -lh'
15alias n='nano -xO'
16alias m='schedtool -R -p 20 -e mplayer -fs -af volnorm -aspect 16:9 -monitoraspect 16:9'
17alias aoeu='setxkbmap -layout us'
18alias asdf='setxkbmap -layout dvorak'
19alias ls='ls --color=auto'
20alias sl='ls --color=auto'
21alias ps='ps -e uf'
22setterm -blank 0
23alias df='df -h -x fuse.sshfs'
24alias du='du -h'
25alias sdu='du -sh'
26alias grep='grep --color=auto'
27
28#setopt promptsubst
29#stty -tostop
30fpath+=$HOME/.zsh/functions
31export BROWSER="firefox"
32
33cformat() {
34 ecrustify -c ~/src/esvn/trunk/FORMATTING/ecrustify.cfg --replace $@
35 sed -i 's/FOREACH (/FOREACH(/g;s/FREE (/FREE(/g;s/FOREACH_SAFE (/FOREACH_SAFE(/g' $@
36}
37hformat() {
38 ecrustify -c ~/src/esvn/trunk/FORMATTING/ecrustify-headers.cfg --replace $@
39 sed -i 's/FOREACH (/FOREACH(/g;s/FREE (/FREE(/g;s/FOREACH_SAFE (/FOREACH_SAFE(/g' $@
40}
41
42oprofile() {
43# opcontrol --no-vmlinux
44 opcontrol --callgraph=7
45 opcontrol --start
46 opcontrol --dump
47 opcontrol --reset
48 $@
49 opcontrol --stop
50}
51
52[[ -z "$terminfo[kdch1]" ]] || bindkey -M emacs "$terminfo[kdch1]" delete-char
53[[ -z "$terminfo[khome]" ]] || bindkey -M emacs "$terminfo[khome]" beginning-of-line
54[[ -z "$terminfo[kend]" ]] || bindkey -M emacs "$terminfo[kend]" end-of-line
55
56#bindkey "^[[3~" delete-char
57#bindkey '^[[7~' beginning-of-line
58#bindkey '^[[8~' end-of-line
59
60if [ "$TERM" != "dumb" ]; then
61 eval "`dircolors -b`"
62fi
63
64#export LANG="en_US.utf8"
65
66# Colors
67export red=$'%{\e[0;31m%}'
68#export RED=$'%{\e[1;31m%}'
69export green=$'%{\e[0;32m%}'
70#export GREEN=$'%{\e[1;32m%}'
71export blue=$'%{\e[0;34m%}'
72#export BLUE=$'%{\e[1;34m%}'
73export purple=$'%{\e[0;35m%}'
74#export PURPLE=$'%{\e[1;35m}'
75export cyan=$'%{\e[0;36m%}'
76#export CYAN=$'%{\e[1;36m}'
77#export WHITE=$'%{\e[1;37m}'
78export white=$'%{\e[0;37m}'
79export NC=$'%{\e[0m%}'
80
81_force_rehash() {
82 (( CURRENT == 1 )) && rehash
83 return 1 # Because we didn't really complete anything
84}
85
86#Don't set a prompt if we aren't interactive
87#This is the default prompt. It can be changed in a .rc file.
88if [[ $- = *i* ]];then
89 export RPROMPT="${cyan}(${NC}%30<...<%~%<<${cyan})${NC}"
90 export PROMPT="${cyan}%t %n@%m%(!.${red}#${NC}.$)${NC} "
91fi
92
93HISTFILE=~/.zshhistory
94HISTSIZE=30000
95SAVEHIST=30000
96LISTMAX=0
97
98#if [[ -f $HOME/.ssh/known_hosts ]]; then
99# _sshhosts=( ${${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*}//[\[\]]/})
100#fi
101#if [[ -d $HOME/.subversion/auth/svn.simple/ ]];then
102# _svnfiles=(`find $HOME/.subversion/auth/svn.simple/`)
103# for i in ${_svnfiles[@]};do
104# _svnhosts+=( ${${${${(f)"$(<${i})"}:#[[:alnum:]]*}#*//}%:*} )
105# done
106#fi
107#unset _svnfiles
108#_allhosts=($_sshhosts $_svnhosts)
109
110#zstyle ':completion:*' hosts $_allhosts
111zstyle ':completion:*' hosts off
112
113# Expansion options
114zstyle ':completion:*' completer _force_rehash _oldlist _expand \
115 _complete _prefix
116zstyle ':completion::prefix-1:*' completer _complete
117zstyle ':completion:incremental:*' completer _complete _correct
118zstyle ':completion:predict:*' completer _complete
119
120# Completion caching
121zstyle ':completion::complete:*' use-cache 1
122zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
123
124# Expand partial paths
125zstyle ':completion:*' expand 'yes'
126zstyle ':completion:*' squeeze-slashes 'yes'
127
128zstyle ':completion:*:*:*:users' ignored-patterns adm apache bin daemon games gdm halt ident junkbust named news nfsnobody nobody nscd ntp operator pcap rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs adm alias at bin cron cyrus daemon ftp games gdm halt lp mail man mysql named news nobody nut operator portage postfix postgres postmaster qmaild qmaill qmailp qmailq qmailr qmails shutdown smmsp squid sshd sync uucp vpopmail xfs lp mail mailnull postgres radvd root sruk.fi
129
130# Include non-hidden directories in globbed file completions
131# for certain commands
132
133zstyle ':completion::complete:*' '\'
134
135# tag-order 'globbed-files directories' all-files
136zstyle ':completion::complete:*:tar:directories' file-patterns '*~.*(-/)'
137
138# Don't complete backup files as executables
139zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
140
141# Separate matches into groups
142zstyle ':completion:*:matches' group 'yes'
143
144# Describe each match group.
145zstyle ':completion:*:descriptions' format "%B---- %d%b"
146
147# Messages/warnings format
148zstyle ':completion:*:messages' format '%B%U---- %d%u%b'
149zstyle ':completion:*:warnings' format '%B%U---- no match for: %d%u%b'
150
151# Describe options in full
152zstyle ':completion:*:options' description 'yes'
153zstyle ':completion:*:options' auto-description '%d'
154
155# }}}
156# {{{ Simulate my old dabbrev-expand 3.0.5 patch
157
158zstyle ':completion:*:history-words' stop verbose
159zstyle ':completion:*:history-words' remove-all-dups yes
160zstyle ':completion:*:history-words' list false
161
162zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
163
164zstyle ':completion:*:*:kill:*' menu yes select
165zstyle ':completion:*:kill:*' force-list always
166
167#avoid partial globs
168zstyle ':completion:*' accept-exact '*(N)'
169
170#enable cache
171zstyle ':completion:*' use-cache on
172zstyle ':completion:*' cache-path ~/.zsh/cache
173
174# zsh Options
175
176setopt \
177 NO_all_export \
178 always_last_prompt \
179 NO_always_to_end \
180 append_history \
181 auto_cd \
182 auto_list \
183 auto_menu \
184 NO_auto_name_dirs \
185 auto_param_keys \
186 auto_param_slash \
187 auto_pushd \
188 auto_remove_slash \
189 NO_auto_resume \
190 bad_pattern \
191 bang_hist \
192 NO_beep \
193 brace_ccl \
194 NO_correct_all \
195 NO_bsd_echo \
196 cdable_vars \
197 NO_chase_links \
198 NO_clobber \
199 correct \
200 csh_junkie_history \
201 NO_csh_junkie_loops \
202 NO_csh_junkie_quotes \
203 NO_csh_null_glob \
204 equals \
205 extended_glob \
206 extended_history \
207 function_argzero \
208 glob \
209 NO_glob_assign \
210 glob_complete \
211 NO_glob_dots \
212 glob_subst \
213 hash_cmds \
214 hash_dirs \
215 hash_list_all \
216 hist_allow_clobber \
217 hist_beep \
218 hist_ignore_dups \
219 hist_ignore_space \
220 NO_hist_no_store \
221 hist_verify \
222 NO_hup \
223 inc_append_history \
224 NO_ignore_braces \
225 NO_ignore_eof \
226 interactive_comments \
227 list_ambiguous \
228 NO_list_beep \
229 list_types \
230 long_list_jobs \
231 magic_equal_subst \
232 NO_mail_warning \
233 NO_mark_dirs \
234 NO_menu_complete \
235 multios \
236 nomatch \
237 notify \
238 NO_null_glob \
239 numeric_glob_sort \
240 NO_overstrike \
241 path_dirs \
242 posix_builtins \
243 NO_print_exit_value \
244 NO_prompt_cr \
245 prompt_subst \
246 pushd_ignore_dups \
247 NO_pushd_minus \
248 pushd_silent \
249 pushd_to_home \
250 rc_expand_param \
251 NO_rc_quotes \
252 NO_rm_star_silent \
253 NO_share_history \
254 NO_sh_file_expansion \
255 sh_option_letters \
256 short_loops \
257 NO_single_line_zle \
258 NO_sun_keyboard_hack \
259 unset \
260 zle
261autoload zmv
262# The following lines were added by compinstall
263zstyle :compinstall filename '/root/.zshrc'
264
265autoload -Uz compinit
266compinit
267# End of lines added by compinstall
268
269source ~/src/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh