dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit cbf1cf9caa20ed77c9e1bb4f0f39bc7cf9a8927a
parent 310456b81322e65db110cd004d76ab2f0387816c
Author: z3bra <willy@mailoo.org>
Date:   Mon Aug  3 22:46:29 2015

trimmed mkshrc + bashrc

Diffstat:
 bashrc  |   2 +-
 mkshrc  | 116 ++++++++++++++++-------------------------------------------------
 profile |  14 ++++----
 3 files changed, 39 insertions(+), 93 deletions(-)

diff --git a/bashrc b/bashrc @@ -90,7 +90,7 @@ alias update='prt-get update' alias pkgup='pkgadd -u' # desktop stuff -alias xreload="xrdb -load ~/etc/Xresources" +alias xreload="xrdb -load ~/conf/xrdb.conf" alias rec="ffmpeg -f x11grab -s 1440x900 -an -i :0.0 -c:v libvpx -b:v 5M -crf 10 -quality realtime -y -loglevel quiet" alias fastrec="ffmpeg -f x11grab -s 1440x900 -an -r 25 -i :0.0 -c:v libvpx -b:v 5M -crf 10 -quality realtime -y -loglevel quiet" alias cam="mplayer -tv driver=v4l2:width=320:height=240: -vo xv tv:// -geometry '99%:90%' -ontop" diff --git a/mkshrc b/mkshrc @@ -1,116 +1,60 @@ -# INIT {{{ - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -test -n "$SSH_CLIENT" && PS1="$(hostname|cut -b 1-3)" || PS1= - -fd="$(tput sgr0)" -ff="$(tput bold)" -PS1="${PS1}${ff}% ${fd}" +PS1='▒▒ ' +PS2='> ' +HISTSIZE=10240 HISTFILE=~/.history -export PS1 HISTFILE - -# }}} -# FUNCTIONS {{{ - -:h () { vim +"h $1" +only +'map q ZQ'; } +export PS1 PS2 HISTSIZE HISTFILE +:h () { vim +'h $1' +only +'map q ZQ'; } up() { - test -z "$1" && cd .. && pwd && return 0 + test -z '$1' && cd .. && pwd && return 0 for i in $(seq 1 $1); do up=../$up; done cd $up pwd } - -sprunge() { - test -z $1 && FILE='-' || FILE=$1 - curl -sF "sprunge=<${FILE}" http://sprunge.us -} - -# my computer is talking say () { TL=${TL:-en} - uri="http://translate.google.com/translate_tts?tl=${TL}&q=" - mplayer -really-quiet "${uri}$*" + uri='http://translate.google.com/translate_tts?tl=${TL}&q=' + mplayer -really-quiet '${uri}$*' } - upthemall() { - for p in ~/usr/ports/*; do + for p in ~/crux/ports/*; do cd $p prtup && fakeroot pkgmk -d && git add . done } -# }}} -# ALIASES {{{ - -# Terminal -alias quit="exit" -alias c="clear" -alias so="source ~/.bashrc" - -# Add a 'proctection' on rm | mv | cp -alias cp="cp -rvi" -alias mv="mv -i" - -# Alias to avoid some "RAAAAAAAAAH !!" -alias :q="quit" -alias cd..="cd .." +alias quit='exit' +alias c='clear' +alias so='source ~/.bashrc' +alias :q='quit' +alias cd..='cd ..' alias fu='sup `fc -n -l -1`' -alias fuck='sup `fc -n -l -1`' -alias sv="sup vim" - -# Make some output colorfull -alias ls="ls -1 --color=auto" -#alias grep="grep --color=auto" - -# some more ls aliases -alias ll="ls -alhF --color=auto" -alias l="ls -CF --color=auto" - -# job control -alias mtop="ps --no-header -eo pmem,size,vsize,comm | sort -nr | sed 10q" -alias ctop="ps --no-header -eo pcpu,comm | sort -nr | sed 10q" - -# command shortner -alias g='grep' -alias v="vim" +alias sv='sup vi' +alias l='ls -1 --color=auto' +alias ll='l -l' +alias mtop='ps --no-header -eo pmem,size,vsize,comm | sort -nr | sed 10q' +alias ctop='ps --no-header -eo pcpu,comm | sort -nr | sed 10q' +alias v='vim' +alias vi='vim' alias t='tmux' -alias btc="btcli -d ~/var/btp" alias csv='column -t -s\;' -alias vol="alsamixer" +alias vol='alsamixer' alias yg="youtube-dl -q -x -o '%(title).%(ext)'" - -# reattach IRC session -alias d='dtach -A ~/tmp/irssi.sk -e  irssi' - -# crux specific alias deptree='prt-get deptree' alias update='prt-get update' -alias pkgup='pkgadd -u' -# desktop stuff -alias xreload="xrdb -load ~/etc/Xresources" -alias rec="ffmpeg -f x11grab -s 1440x900 -an -i :0.0 -c:v libvpx -b:v 5M -crf 10 -quality realtime -y -loglevel quiet" -alias fastrec="ffmpeg -f x11grab -s 1440x900 -an -r 25 -i :0.0 -c:v libvpx -b:v 5M -crf 10 -quality realtime -y -loglevel quiet" -alias cam="mplayer -tv driver=v4l2:width=320:height=240: -vo xv tv:// -geometry '99%:90%' -ontop" +# X11 only +alias xreload='xrdb -load ~/conf/xrdb.conf' +alias rec='ffmpeg -f x11grab -s 1440x900 -an -i :0.0 -c:v libvpx -b:v 5M -crf 10 -quality realtime -y -loglevel quiet' +alias fastrec='ffmpeg -f x11grab -s 1440x900 -an -r 25 -i :0.0 -c:v libvpx -b:v 5M -crf 10 -quality realtime -y -loglevel quiet' +alias cam='mplayer -tv driver=v4l2:width=320:height=240: -vo xv tv:// -geometry '99%:90%' -ontop' -# HANDY RICKY SCRIPT +# funny stuff alias rick="echo 'curl -L http://bit.ly/10hA8iC | bash'" -alias rcommit="curl -s 'http://whatthecommit.com/index.txt'" -# }}} -# BINDINGS {{{ +alias rcommit='curl -s http://whatthecommit.com/index.txt' + bind ^L=clear-screen -# }}} -# TWEAKS {{{ -# change tty colors -set -o vi -which ttycolors >/dev/null 2>&1 && ttycolors -# }}} todo - -# vim: fdm=marker: diff --git a/profile b/profile @@ -1,6 +1,8 @@ -export PATH=$PATH:/sbin:/usr/sbin:~/bin:. -export MAIL=$HOME/var/mail/inbox -export PAGER=less -export EDITOR=vim -export MPD_HOST=gavroche -export LS_COLORS="so=35:tw=91:ow=93" +PS1='> ' +PATH=$PATH:/sbin:/usr/sbin:~/bin:. +PAGER="less -R" +EDITOR=vi +MPD_HOST=gavroche +LS_COLORS="so=35:tw=91:ow=93" + +export PS1 PATH PAGER EDITOR MPD_HOST LS_COLORS