summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish/.config/fish/by_host/2pac.fish22
-rw-r--r--fish/.config/fish/by_host/cluster.fish22
-rw-r--r--fish/.config/fish/by_host/default.fish0
-rw-r--r--fish/.config/fish/by_host/donna.fish22
-rw-r--r--fish/.config/fish/by_host/local.fish15
-rw-r--r--fish/.config/fish/by_host/vicious.fish22
-rw-r--r--fish/.config/fish/config.fish119
7 files changed, 222 insertions, 0 deletions
diff --git a/fish/.config/fish/by_host/2pac.fish b/fish/.config/fish/by_host/2pac.fish
new file mode 100644
index 0000000..05454e0
--- /dev/null
+++ b/fish/.config/fish/by_host/2pac.fish
@@ -0,0 +1,22 @@
+umask u=rwx,g=rwx,o=rx
+
+set PATH /home/mitarb/simianer/bin:/home/pks/bin:/opt/java/bin:/toolbox/ruby/bin:$PATH
+set GEM_HOME /toolbox/ruby/
+set PYTHONPATH $PYTHONPATH:/toolbox/python/lib/python2.7/site-packages
+set JAVA_HOME /usr/lib/jvm/java-6-sun/ # debian systems w/ sun-java6
+
+alias tmux="tmux -f ~/.tmux.(hostname).conf"
+
+function fish_prompt -d "Write out the prompt"
+ set me (whoami)
+ if [ $me = "root" ]
+ printf '(set_color red)# '
+ else
+ printf '%s@%s%s%s%s> ' \
+ $me (set_color green) \
+ (hostname | cut -d . -f 1) \
+ (prompt_pwd) \
+ (set_color normal)
+ end
+end
+
diff --git a/fish/.config/fish/by_host/cluster.fish b/fish/.config/fish/by_host/cluster.fish
new file mode 100644
index 0000000..2bad630
--- /dev/null
+++ b/fish/.config/fish/by_host/cluster.fish
@@ -0,0 +1,22 @@
+umask u=rwx,g=rwx,o=rx
+
+set PATH /home/mitarb/simianer/bin:/home/pks/bin:/opt/java/bin:/toolbox/ruby/bin:$PATH
+set GEM_HOME /toolbox/ruby/
+set PYTHONPATH $PYTHONPATH:/toolbox/python/lib/python2.7/site-packages
+set JAVA_HOME /usr/lib/jvm/java-6-sun/ # debian systems w/ sun-java6
+
+alias tmux="tmux -f ~/.tmux.(hostname).conf"
+
+function fish_prompt -d "Write out the prompt"
+ set me (whoami)
+ if [ $me = "root" ]
+ printf '(set_color red)# '
+ else
+ printf '%s@%s%s%s%s> ' \
+ $me (set_color cyan) \
+ (hostname | cut -d . -f 1) \
+ (prompt_pwd) \
+ (set_color normal)
+ end
+end
+
diff --git a/fish/.config/fish/by_host/default.fish b/fish/.config/fish/by_host/default.fish
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/fish/.config/fish/by_host/default.fish
diff --git a/fish/.config/fish/by_host/donna.fish b/fish/.config/fish/by_host/donna.fish
new file mode 100644
index 0000000..a67e315
--- /dev/null
+++ b/fish/.config/fish/by_host/donna.fish
@@ -0,0 +1,22 @@
+umask u=rwx,g=rwx,o=rx
+
+set PATH /home/mitarb/simianer/bin:/home/pks/bin:/opt/java/bin:/toolbox/ruby/bin:$PATH
+set GEM_HOME /toolbox/ruby/
+set PYTHONPATH $PYTHONPATH:/toolbox/python/lib/python2.7/site-packages
+set JAVA_HOME /usr/lib/jvm/java-6-sun/ # debian systems w/ sun-java6
+
+alias tmux="tmux -f ~/.tmux.(hostname).conf"
+
+function fish_prompt -d "Write out the prompt"
+ set me (whoami)
+ if [ $me = "root" ]
+ printf '(set_color red)# '
+ else
+ printf '%s@%s%s%s%s> ' \
+ $me (set_color red) \
+ (hostname | cut -d . -f 1) \
+ (prompt_pwd) \
+ (set_color normal)
+ end
+end
+
diff --git a/fish/.config/fish/by_host/local.fish b/fish/.config/fish/by_host/local.fish
new file mode 100644
index 0000000..cb42098
--- /dev/null
+++ b/fish/.config/fish/by_host/local.fish
@@ -0,0 +1,15 @@
+set PATH /usr/lib/colorgcc/bin:~/src/scripts:~/lib/node/bin:$PATH
+
+function fish_prompt -d "Write out the prompt"
+ set me (whoami)
+ if [ $me = "root" ]
+ printf '(set_color red)# '
+ else
+ printf '%s@%s%s%s%s> ' \
+ $me (set_color magenta) \
+ (hostname | cut -d . -f 1) \
+ (prompt_pwd) \
+ (set_color normal)
+ end
+end
+
diff --git a/fish/.config/fish/by_host/vicious.fish b/fish/.config/fish/by_host/vicious.fish
new file mode 100644
index 0000000..bd09c8d
--- /dev/null
+++ b/fish/.config/fish/by_host/vicious.fish
@@ -0,0 +1,22 @@
+umask u=rwx,g=rwx,o=rx
+
+set PATH /home/mitarb/simianer/bin:/home/pks/bin:/opt/java/bin:/toolbox/ruby/bin:$PATH
+set GEM_HOME /toolbox/ruby/
+set PYTHONPATH $PYTHONPATH:/toolbox/python/lib/python2.7/site-packages
+set JAVA_HOME /usr/lib/jvm/java-6-sun/ # debian systems w/ sun-java6
+
+alias tmux="tmux -f ~/.tmux.(hostname).conf"
+
+function fish_prompt -d "Write out the prompt"
+ set me (whoami)
+ if [ $me = "root" ]
+ printf '(set_color red)# '
+ else
+ printf '%s@%s%s%s%s> ' \
+ $me (set_color yellow) \
+ (hostname | cut -d . -f 1) \
+ (prompt_pwd) \
+ (set_color normal)
+ end
+end
+
diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish
new file mode 100644
index 0000000..aded3be
--- /dev/null
+++ b/fish/.config/fish/config.fish
@@ -0,0 +1,119 @@
+umask 0077
+set -x PATH=~/bin:/home/pks/bin:~/scripts:~/lib/ruby/bin:~/lib/python/site-packages:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
+set -x RUBYOPT=-Ku
+set -x CCACHE_PATH=/usr/bin
+set -x TEXMFHOME='~/.texmf'
+set -x EDITOR='vim -p'
+set -x LC_ALL=en_US.UTF-8
+set -x LANG=en_US.UTF-8
+set -x LANGUAGE=en_US.UTF-8
+set -x GEM_HOME=$HOME/lib/ruby/
+set -x GEM_PATH=$HOME/lib/ruby/:$GEM_PATH
+set -x PYTHONPATH=$PYTHONPATH:~/lib/python/site-packages
+set -x CFLAGS="-march=native -mtune=native"
+set -x CXXFLAGS="$CFLAGS"
+
+set machine (hostname)
+set color white
+switch $machine
+ case x pi* *.uberspace.de
+ source ~/.config/fish/by_host/local.fish
+ case 2pac
+ source ~/.config/fish/by_host/2pac.fish
+ case coltrane
+ source ~/.config/fish/by_host/coltrane.fish
+ case donna
+ source ~/.config/fish/by_host/donna.fish
+ case vicious
+ source ~/.config/fish/by_host/vicious.fish
+ case CLuster
+ case node*
+ case gpu*
+ source ~/.config/fish/by_host/cluster.fish
+ case *
+ source ~/.config/fish/by_host/default.fish
+end
+
+alias ls='ls -h --color=auto'
+alias l='ls'
+alias la='ls -lA'
+alias ll='ls -l'
+alias lla='ls -A'
+alias lsc='ls -1 | wc -l'
+alias less='less -R'
+alias lh='ls --color=always -lasth | less'
+alias vi=$EDITOR
+alias pdf='mupdf'
+alias py='bpython'
+alias grep='grep --color=auto'
+alias equery='sudo equery -N'
+alias feh='feh -F'
+alias gitweb='git instaweb --httpd webrick'
+alias gitwebstop='git instaweb stop'
+alias netcfg='sudo netcfg'
+alias mergepdf='texexec --pdfarrange --noduplex --result merged.pdf '
+alias mergepdfgs=' gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=gsmerged.pdf -dBATCH'
+alias pdfprevfile='pdftoppm -f 1 -l 1 -singlefile -jpeg'
+alias thumb='convert -resize 200x200'
+alias updatedb='sudo updatedb'
+alias qmv='qmv -evim -fdo'
+alias dusage='du -hs *'
+alias df='df -h'
+alias iwlist='sudo iwlist wlan0 scan'
+alias fumount='fusermount -u'
+alias more='less'
+alias vpnc='sudo vpnc'
+alias reboot='sudo shutdown -r now'
+alias halt='sudo shutdown -h now'
+alias lock='slock'
+alias fwup='sudo ifconfig firewire0 192.168.166.100 up'
+alias gunzip='pigz -d'
+alias fastltx='pdflatex -interaction=batchmode --shell-escape -parse-first-line'
+alias lp2p='/usr/bin/lp -o sides=two-sided-long-edge'
+alias lp4p='/usr/bin/lp -o sides=two-sided-short-edge -o number-up=2'
+alias lp8p='/usr/bin/lp -o sides=two-sided-short-edge -o number-up=4 -o landscape'
+alias muxn='tmux new -s'
+alias muxl='tmux list-sessions'
+alias muxa='tmux attach -t'
+alias biew='TERM=vt100 biew filename'
+alias dmesg='dmesg -T'
+alias always_on='xset dpms 0 0 0'
+alias quotes='curl -s "http://download.finance.yahoo.com/d/quotes.csv?s=AAPL+AMD+GOOG&f=l1"'
+alias irb='pry'
+alias easy_install_home='easy_install --install-dir=$HOME/lib/python/site-packages'
+alias uberspace='mosh -p 60666 pks@alphard.uberspace.de'
+alias my_ip='echo "(curl 'https://api.ipify.org' 2>/dev/null)"'
+alias gitc='git -c color.status=always'
+alias npm_install='npm install -g --prefix ./lib/node'
+alias ssh_legacy='ssh -oKexAlgorithms=+diffie-hellman-group1-sha1'
+
+function demoterm
+ urxvt -fn 'xft:Tamsyn:pixelsize=18' -fg #000000 -bg #ffffff;
+end
+function watch_d
+ while true; clear; ps ax | grep -P "\sD\+?\s"; sleep 5; end
+end
+function t_timeline
+ while true; clear; t timeline -n 13 -C icon; sleep 600; end
+end
+function cal
+ while true; clear; echo; khal calendar; sleep 600; end
+end
+function vgaoff
+ xrandr --output VGA1 --off;
+ xrandr --output LVDS1 --mode 1024x768;
+end
+alias vgaclone='xrandr --output VGA1 --mode 1024x768'
+alias vgaext='xrandr --output VGA1 --mode 1024x768 --left-of LVDS1 --rotate right'
+function vga21
+ xrandr --output VGA1 --mode 1600x1200 --rate 60 --rotate right;
+ xrandr --output LVDS1 --off;
+end
+function vga22w
+ xrandr --output VGA1 --mode 1680x1050 --rate 60 --rotate right;
+ xrandr --output LVDS1 --off;
+end
+function youtube
+ mpv -xy 0.5 (youtube-dl -g "$args")
+end
+