Skip to content

Commit a0eb10d

Browse files
author
Ehtesh-sky
committed
Small changes to .zshrc and .Xdefaults and other such files
1 parent 1d0bfa2 commit a0eb10d

File tree

5 files changed

+27
-34
lines changed

5 files changed

+27
-34
lines changed

.Xdefaults

+9-1
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,19 @@ URxvt.color15 : #FFFFFF
4444
!URxvt*boldFont: xft:DejaVu Sans Mono:size=9:style=Bold
4545
!URxvt*font: 9x15
4646
!URxvt*boldFont: 9x15bold
47-
URxvt*font: xft:Monospace:pixelsize=11
47+
URxvt*font: xft:Monospace:pixelsize=12
4848
URxvt*boldFont: xft:Monospace:pixelsize=11:style=Bold
4949

5050
URxvt*letterSpace: -1
5151
URxvt*scrollBar: False
5252
URxvt*scrollTtyOutput: True
5353
URxvt*secondaryScroll: True
5454
URxvt*saveLines: 16384
55+
56+
! copied from https://wiki.archlinux.org/index.php/Font_Configuration#Ubuntu
57+
Xft.autohint: 0
58+
Xft.lcdfilter: lcddefault
59+
Xft.hintstyle: hintfull
60+
Xft.hinting: 1
61+
Xft.antialias: 1
62+
Xft.rgba: rgb

.bash_aliases

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ alias less="less -R"
3232

3333
nullbg(){ "$@" >&/dev/null & }
3434
findfile(){ find . -iregex ".*$1.*" -type f -print; }
35-
manfind() { man "$1" | less -i -p "$2" }
35+
manfind() {
36+
man "$1" | less -i -p "$2"
37+
}

.bashrc

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export WORKON_HOME="~/projects/envs"
1515
export INPUTRC="$HOME/.inputrc"
1616
export PAGER="less"
1717
export LESS="-R"
18+
export PATH=".cabal/bin:$PATH"
1819

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

.xmonad/xmonad.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bindKeys =
8383
-- bind M-n to next window
8484
-- bind M-g to gridselect
8585
-- bind M-(S)-(-/=) to resize window a variety of ways -- maybe I'll get aspect ratio preserving later
86-
("M-;", spawn "exe=$(dmenu_path | dmenu -i) && eval \"exec $exe\"")
86+
("M-;", spawn "exe=$(dmenu_path_c | dmenu -i) && eval \"exec $exe\"")
8787
, ("M-q", spawn "xmonad --recompile && xmonad --restart")
8888
{-, ("M-t", spawn "urxvt")-}
8989
, ("M-t", sinkAll)

.zshrc

+13-31
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,20 @@
1+
autoload -U compinit promptinit colors
2+
compinit && promptinit && colors
3+
prompt adam1
4+
15
export EDITOR=vim
26
export HISTSIZE=20000
7+
RUBYPATH=/var/lib/gems/1.8/bin
8+
CABALPATH=$HOME/.cabal/bin
9+
export PATH=$HOME/bin:$CABALPATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
310

411
# setup for virtualenvwrapper and pip
512
export WORKON_HOME=$HOME/projects/envs
613
export PIP_VIRTUALENV_BASE=$WORKON_HOME
714
export PIP_RESPECT_VIRTUALENV=true
815

9-
# Oh-My-Zsh {{{
10-
#
11-
# Path to your oh-my-zsh configuration.
12-
export ZSH=$HOME/.oh-my-zsh
13-
# Set name of the theme to load.
14-
# Look in ~/.oh-my-zsh/themes/
15-
# Optionally, if you set this to "random", it'll load a random theme each
16-
# time that oh-my-zsh is loaded.
17-
export ZSH_THEME="unt"
18-
19-
export DISABLE_AUTO_UPDATE="true" # Comment this out to disable weekly auto-update checks
20-
export DISABLE_AUTO_TITLE="true" # Uncomment following line if you want to disable autosetting terminal title.
21-
22-
# zsh-syntax highlighting.. maybe
23-
#ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
24-
#
25-
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
26-
# Example format: plugins=(rails git textmate ruby lighthouse)
27-
plugins=(git) #zsh-syntax-highlighting)
28-
29-
source $ZSH/oh-my-zsh.sh
30-
31-
#}}}
32-
33-
# Prompt, using oh-my-zsh colors {{{
3416

17+
# TODO fix this so it doesn't use oh-my-zsh colors
3518
function zle-line-init zle-keymap-select {
3619
MODE="${${KEYMAP/vicmd/-N-}/(main|viins)/-I-}"
3720
RPS1="%{$fg[cyan]%}%1c %{$reset_color%}$MODE %{$fg_bold[green]%}% $USER@$HOST% %{$reset_color%}"
@@ -44,19 +27,19 @@ zle -N zle-line-init
4427

4528
# this stuff is way more confusing than it needs be
4629
#[ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#I") $PWD
47-
PROMPT='%{$fg_bold[red]%}➜%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %{$reset_color%}'
30+
#PROMPT='%{$fg_bold[red]%}➜%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %{$reset_color%}'
4831
#RPROMPT='%{$fg[cyan]%}%1c %{$fg_bold[green]%}% $USER@$HOST% %{$reset_color%}'
4932

50-
# }}}
51-
5233

53-
# Customize to your needs...
54-
export PATH=$HOME/bin:/var/lib/gems/1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
34+
# Load various files
35+
# TODO maybe make a function so it's less repetitive?
5536

5637
[[ -f $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc
5738
[[ -f $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
5839
[[ -f /etc/profile.d/autojump.zsh ]] && source /etc/profile.d/autojump.zsh
5940
#command -v virtualenvwrapper.sh >/dev/null && source virtualenvwrapper.sh #>&/dev/null
41+
[[ -f $HOME/.bash_aliases ]] && source $HOME/.bash_aliases
42+
[[ -f /etc/git-completion.bash ]] && source /etc/git-completion.bash
6043

6144

6245
#TODO double check these options?
@@ -89,4 +72,3 @@ bindkey -M viins 'f' vi-forward-word
8972

9073
# }}}
9174

92-
[[ -f $HOME/.bash_aliases ]] && source $HOME/.bash_aliases

0 commit comments

Comments
 (0)