Some bash and all

This commit is contained in:
Frank Villaro-Dixon 2014-02-24 21:17:49 +01:00
parent c09c309ae7
commit 91d6e7e218
6 changed files with 25 additions and 1 deletions

View file

@ -111,7 +111,7 @@ readpw(Display *dpy, char *pws)
switch(ksym) {
case XK_Return:
passwd[len] = 0;
passwd[len] = '\0';
running = !!strcmp(passwd, pws);
if(running)
XBell(dpy, 100);

7
bashrc
View file

@ -146,6 +146,7 @@ alias shm='cd /dev/shm'
alias ip6='ip -6'
alias disk-usage-analyser='baobab'
alias o='octave'
alias R='R --quiet'
alias cdu='cdu -idh'
alias dus='du -sh * | sort -h'
alias im='profanity'
@ -156,6 +157,12 @@ alias im='profanity'
## FONCTIONS ##
###############
# {{{
function fuck {
shift;
killall -9 "$1"
echo "fucking $1" killed
}
function cd #{{{
{
if [ $# -eq 0 ]; then

View file

@ -124,3 +124,6 @@ set date_format="%y-%m-%d %T"
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
set sleep_time=0
#set mime_forward=yes
#set mime_forward_rest=yes

View file

@ -80,6 +80,7 @@ SED=/bin/sed
* ^Subject:.*(F|f)inance.*
$SPAMBOX
#I don't need-it :D
:0
* ^From:.*(Viiagra|Viaggra|Viagrra|Viagra).*
@ -127,6 +128,13 @@ SED=/bin/sed
* spill
* oil
$SPAMBOX
:0 B
* oil
* painting
* (photo|image)
* qq.com
* frank
$SPAMBOX
#out russian dating
:0 B

View file

@ -39,3 +39,7 @@ Multinôme
microcontroleurs
séquentiellement
encapsule
désinscrire
L'État
lémanique
OpenStreetMap

View file

@ -59,6 +59,8 @@ filetype plugin on
filetype indent on
noremap <S-Space> <Esc>
imap kj <ESC>
imap jk <ESC>
noremap j gj
noremap k gk