Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 7 commits
  • 8 files changed
  • 0 comments
  • 1 contributor
4 zsh/.zsh/NOTES
@@ -95,3 +95,7 @@ Sous emacs :
95 95
96 96 Sous TSClient :
97 97 - ctrl+alt+entrée pour sortir du mode plein-écran
  98 +
  99 +Sous SSH :
  100 + - entrée, ~, . pour quitter ssh
  101 + - entrée, ~, ctrl+z pour suspendre ssh
14 zsh/.zsh/alias
@@ -29,12 +29,22 @@ function gdb()
29 29
30 30 function sc()
31 31 {
32   - screen
  32 + screen $@
33 33 }
34 34
35 35 function kp()
36 36 {
37   - keepassx &!
  37 + keepassx $@ &!
  38 +}
  39 +
  40 +function mem()
  41 +{
  42 + vmstat -sSM $@
  43 +}
  44 +
  45 +function wa()
  46 +{
  47 + watch $@
38 48 }
39 49
40 50 function py()
2  zsh/.zsh/arc
@@ -147,7 +147,7 @@ function x()
147 147 ;;
148 148 *.rar)
149 149 print "\e[32mExtracting \e[1m$arg\e[0;32m (\e[1mRar\e[0;32m compressed archive)...\e[0m"
150   - unrar e $arg
  150 + unrar x $arg
151 151 ;;
152 152 *)
153 153 print "\e[91mCannot extract \e[1m$arg\e[0;31m (\e[1mUnknown\e[0;31m archive type)...\e[0m"
2  zsh/.zsh/edelweiss
@@ -2,7 +2,7 @@
2 2
3 3 source ./capricorn
4 4
5   -PYTHONPATH="$PYTHONPATH:/home/arkanosis/Documents/Programmation/django-trunk/"
  5 +PYTHONPATH="$PYTHONPATH:/home/arkanosis/Documents/Programmation/django-trunk/:/usr/lib/python:/usr/share/pyshared/:/usr/lib/pyshared/python2.6/"
6 6
7 7 function apache()
8 8 {
1  zsh/.zsh/math
... ... @@ -1,6 +1,7 @@
1 1 # "-*- sh -*-"
2 2
3 3 autoload zcalc
  4 +zmodload zsh/mathfunc
4 5
5 6 function zc()
6 7 {
2  zsh/.zsh/options
@@ -13,4 +13,4 @@ setopt equals
13 13
14 14 setopt noclobber
15 15
16   -setopt warncreateglobal
  16 +#setopt warncreateglobal
2  zsh/.zsh/paths
... ... @@ -1,5 +1,7 @@
1 1 # "-*- sh -*-"
2 2
  3 +source bookmarks
  4 +
3 5 typeset -U PATH
4 6
5 7 export PATH=$HOME/local_$arch/bin/:$HOME/local/bin/:$PATH
14 zsh/.zsh/truecrypt
@@ -2,6 +2,8 @@
2 2
3 3 function ma()
4 4 {
  5 + local pass
  6 +
5 7 if ! ((#)); then
6 8 echo 'Usage: ma <files>' >&2
7 9 return 1
@@ -11,20 +13,28 @@ function ma()
11 13 mkdir mnt
12 14 fi
13 15
  16 + read -s pass
  17 +
14 18 for i; do
15 19 if ! [[ -d mnt/$i ]]; then
16 20 mkdir mnt/$i
17 21 fi
18   - truecrypt $i mnt/$i
  22 + echo $pass | sudo truecrypt -t $i mnt/$i -k '' --protect-hidden=no
19 23 done
20 24 }
21 25
22 26 function addnode()
23 27 {
  28 + local i
  29 +
24 30 if ((# != 1)); then
25 31 echo 'Usage: addnode <nodeNumber>' >&2
26 32 return 1
27 33 fi
28 34
29   - sudo mknod -m660 /dev/loop$1 b 7 $1
  35 + i=1
  36 + while ((i < $1)); do
  37 + sudo mknod -m660 /dev/loop$i b 7 $i
  38 + ((++i))
  39 + done
30 40 }

No commit comments for this range

Something went wrong with that request. Please try again.