alias for scp

This commit is contained in:
Frank Villaro-Dixon 2013-08-27 01:07:53 +02:00
parent ea3ec50467
commit 5e18ffa46c
4 changed files with 37 additions and 6 deletions

16
Xmodmap Normal file
View file

@ -0,0 +1,16 @@
!clear control
!clear mod1
!keycode 37 = Alt_L Meta_L
!add mod1 = Alt_L
!keycode 64 = Control_L
!add control = Control_L Control_R
!remove mod1 = Alt_L
!remove Control = Control_L
clear Control
clear mod1
keysym Control_L = Alt_L
keysym Alt_L = Control_L
add mod1 = Alt_L
add Control = Control_L
! Control_R

18
bashrc
View file

@ -116,8 +116,8 @@ alias upkey='gpg --keyserver subkeys.pgp.net --send-key 6F36914A'
alias shm='cd /dev/shm'
alias ip6='ip -6'
alias disk-usage-analyser='baobab'
alias op='xdg-open'
# }}}
@ -137,8 +137,8 @@ function cd()
}
#}}}
alias ssh='hh'
function hh
alias ssh='my_ssh'
function my_ssh
{ # {{{
ssh-add -l | grep id_rsa.auth > /dev/null
if [ $? -eq 1 ]; then
@ -149,6 +149,18 @@ function hh
}
# }}}
alias scp='my_scp'
function my_scp
{ # {{{
ssh-add -l | grep id_rsa.auth > /dev/null
if [ $? -eq 1 ]; then
echo -e "$RED Please enter ssh passphrase ;) $DFT"
ssh-add ~/.ssh/id_rsa.auth
fi;
"/usr/bin/scp" "$*"
}
# }}}
function logs
{ # {{{
tail -f $1 | ccze -A

View file

@ -46,6 +46,9 @@ static const Layout layouts[] = {
/* key definitions */
/* Mod1: alt - Mod4: Super */
#define MODKEY Mod1Mask
//#define MODKEY ControlMask
//#define MODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \

View file

@ -26,9 +26,9 @@ wmname LG3D
setxkbmap -model pc104 -layout ch -variant fr -option compose:lwin
#My pinkie hurts :'(
if [ -s ~/.Xmodmap ]; then
xmodmap ~/.Xmodmap
fi
#if [ -s ~/.Xmodmap ]; then
# xmodmap ~/.Xmodmap
#fi
while true; do
$OCTOPUS refresh