summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-07-13 01:33:30 +0200
committerUrbain Vaes <urbain@vaes.uk>2015-07-13 01:33:30 +0200
commitbc9c8ba28118a84a5a23eadd37fed855e000ebd0 (patch)
treebbacb34e5d3af26554a93d4b12d422bf9ff39512
parent8de6af284c4d4ed227c066d17fdc3954f20f2e51 (diff)
Improve Xresource
-rw-r--r--Xresources9
-rw-r--r--bookmarks9
-rw-r--r--latexmkrc1
-rw-r--r--mutt/muttrc1
-rw-r--r--vim/.netrwhist11
-rw-r--r--vimrc7
-rw-r--r--zshrc31
7 files changed, 41 insertions, 28 deletions
diff --git a/Xresources b/Xresources
index 3ad523b..4693c69 100644
--- a/Xresources
+++ b/Xresources
@@ -12,6 +12,10 @@ XTerm*selectToClipboard: true
! URXVT !
+! General settings
+URxvt.loginShell : true
+URxvt.termName : rxvt-256color
+
! Custom META key
URxvt*modifier: alt
@@ -33,14 +37,11 @@ URxvt.keysym.M-p: perl:clipboard:paste
URxvt.keysym.F11: perl:fullscreen:switch
! Appearance
-!
! URxvt*font: xft:DejaVu Sans Mono:size=12
URxvt*font: xft:monaco:size=11:antialias=false
URxvt*scrollBar: false
URxvt*internalBorder: 0
-
-! Cursor color
-URxvt*cursorColor: Green
+URxvt.borderColor: black
! True transparency
URxvt.depth: 32
diff --git a/bookmarks b/bookmarks
index 4bf977a..8d3e14f 100644
--- a/bookmarks
+++ b/bookmarks
@@ -1,5 +1,8 @@
-code : /home/urbain/Dropbox/phd/code/spectral
+report : /home/urbain/Dropbox/phd/reports/esa
+phd : /home/urbain/Dropbox/phd
dotfiles : /home/urbain/dotfiles
+presentation : /home/urbain/Dropbox/phd/presentations/spectral
paper : /home/urbain/Dropbox/phd/papers/spectral
-phd : /home/urbain/Dropbox/phd
-report : /home/urbain/Dropbox/phd/reports/esa
+code : /home/urbain/Dropbox/phd/code/spectral
+develop : /home/urbain/Dropbox/phd/code/spectral/develop
+feature : /home/urbain/Dropbox/phd/code/spectral/feature
diff --git a/latexmkrc b/latexmkrc
index 1de49b4..03c512c 100644
--- a/latexmkrc
+++ b/latexmkrc
@@ -3,4 +3,3 @@ $pdflatex = 'pdflatex --shell-escape';
$pdf_previewer = 'zathura -s -x "vim --servername SYNC --remote +%{line} %{input}" %O %S';
$clean_ext = "synctex.gz bbl pdf dvi";
$new_viewer_always [0];
-
diff --git a/mutt/muttrc b/mutt/muttrc
index 417c73e..b12a567 100644
--- a/mutt/muttrc
+++ b/mutt/muttrc
@@ -86,6 +86,7 @@ bind pager R group-reply
# Source mutt solarized
`[ "$COLORSCHEME" = "light" ] && echo source $HOME/github/mutt-colors-solarized/mutt-colors-solarized-light-16.muttrc || echo set`
`[ "$COLORSCHEME" = "dark" ] && echo source $HOME/github/mutt-colors-solarized/mutt-colors-solarized-dark-16.muttrc || echo set`
+`[ "$COLORSCHEME" = "default" ] && echo source $HOME/github/mutt-colors-solarized/mutt-colors-solarized-dark-16.muttrc || echo set`
# Colors
color index brightblue default "~f edfenergy"
diff --git a/vim/.netrwhist b/vim/.netrwhist
index 120d736..1fa25b1 100644
--- a/vim/.netrwhist
+++ b/vim/.netrwhist
@@ -1,7 +1,6 @@
let g:netrw_dirhistmax =10
-let g:netrw_dirhist_cnt =5
-let g:netrw_dirhist_1='/home/urbain/Dropbox/phd/code/spectral/feature'
-let g:netrw_dirhist_2='/home/urbain/Dropbox/phd/code/spectral/feature/src'
-let g:netrw_dirhist_3='/home/urbain/Dropbox/phd/code/spectral/develop/python'
-let g:netrw_dirhist_4='/home/urbain/.antigen'
-let g:netrw_dirhist_5='/home/urbain/dotfiles/mutt'
+let g:netrw_dirhist_cnt =4
+let g:netrw_dirhist_1='/home/urbain/Dropbox/phd'
+let g:netrw_dirhist_2='/home/urbain'
+let g:netrw_dirhist_3='/home/urbain/Dropbox/phd/presentations/spectral'
+let g:netrw_dirhist_4='/home/urbain/Dropbox/phd/code/spectral/feature/cpp/src'
diff --git a/vimrc b/vimrc
index 1b0b533..35fd458 100644
--- a/vimrc
+++ b/vimrc
@@ -199,7 +199,7 @@ elseif $COLORSCHEME=="default"
silent! colo seoul256
set background=dark
endif
-
+
highlight Comment cterm=italic
set t_ZH=
set t_ZR=
@@ -207,9 +207,8 @@ set t_ZR=
"" Maps
" Definition of leaders
-let mapleader = "\\"
-let maplocalleader = "-"
-nmap <Space> <Leader>
+let mapleader = " "
+let maplocalleader = "\\"
" New pages
nnoremap <Leader>pe :tabedit
diff --git a/zshrc b/zshrc
index bfc6a26..dce837d 100644
--- a/zshrc
+++ b/zshrc
@@ -13,11 +13,17 @@ if ! zgen saved; then
zgen oh-my-zsh plugins/vi-mode
zgen oh-my-zsh plugins/ubuntu
zgen oh-my-zsh plugins/tmux
+ zgen oh-my-zsh plugins/themes
# zsh-users plugins
zgen load zsh-users/zsh-completions src
zgen load zsh-users/zsh-syntax-highlighting
+ # Appearance
+ zgen load mafredri/zsh-async
+ zgen load sindresorhus/pure
+ # zgen oh-my-zsh themes/eastwood
+
# Other plugins
zgen load rupa/z
zgen load djui/alias-tips
@@ -26,11 +32,6 @@ if ! zgen saved; then
zgen load uvaes/fzf-marks
zgen load joel-porquet/zsh-dircolors-solarized
- # Appearance
- # zgen load mafredri/zsh-async
- # zgen load sindresorhus/pure
- zgen oh-my-zsh themes/eastwood
-
# Save all to init script
zgen save
fi
@@ -46,7 +47,6 @@ zle-line-init() {
zle -N zle-line-init
# Fzf-marks
-bindkey '^g' fzf-marks-navigate
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
@@ -154,10 +154,10 @@ fi
# Colors
-export TERM=xterm-256color
-export COLORSCHEME=dark
+# export TERM=xterm-256color
+export COLORSCHEME=defau
-function cc {
+function colo {
# Change colors for current session
$HOME/.bin/recolor.sh < ~/.Xresources.$1
@@ -169,7 +169,7 @@ function cc {
export COLORSCHEME=$1
# Change default environment variable for future sessions
- sed -i "s/^export COLORSCHEME=.*$/export COLORSCHEME=$1/g" ~/dotfiles/.zshrc
+ sed -i --follow-symlinks "s/^export COLORSCHEME=.*$/export COLORSCHEME=$1/g" ~/dotfiles/zshrc
}
# Fix tmux colors
@@ -182,3 +182,14 @@ if [[ -n ${TMUX} && -n ${commands[tmux]} ]];then
TERM=screen
esac
fi
+
+
+# Z
+unalias z 2> /dev/null
+z() {
+ if [[ -z "$*" ]]; then
+ cd "$(_z -l 2>&1 | fzf-tmux +s --tac | sed 's/^[0-9,.]* *//')"
+ else
+ _z "$@"
+ fi
+}