Browse Source

Add a screen+ssh workaround and add some aliases

master
Duke Leto 14 years ago
parent
commit
bb1f61d3f2
  1. 9
      bin/screen
  2. 3
      config/.bashrc.aliases
  3. 2
      config/.screenrc

9
bin/screen

@ -0,0 +1,9 @@
#!/bin/bash
# Wrapper script to set SSH env vars so agent forwarding works when
# resuming screen sessions. Place at ~/bin/screen and make sure
# your personal bin directory has priority in your PATH
for SSHVAR in SSH_CLIENT SSH_TTY SSH_AUTH_SOCK SSH_CONNECTION DISPLAY; do
echo "export ${SSHVAR}=\"${!SSHVAR}\""
done > ~/.sshvars
/usr/bin/screen $*

3
config/.bashrc.aliases

@ -130,8 +130,11 @@ alias screenshot="xwd -display :0 -root > screenshot.dmp"
alias h="history|tail -n 25"
alias hg="history|grep "
alias m=make
alias mt="make test"
alias mit="make install test"
alias mj="nice -n20 make -j"
alias l=less
alias fixssh='source ~/.sshvars'
alias sx="ssh -XA"
alias ..='cd ..'
alias 2..='cd $up2'

2
config/.screenrc

@ -1,7 +1,7 @@
startup_message off # default: on
# Change the number of scrollback lines
defscrollback 1000 # default: 100
defscrollback 2000 # default: 100
# Ensure the default shell is the same as the $SHELL environment variable
shell -$SHELL

Loading…
Cancel
Save