-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprofile
63 lines (49 loc) · 2.18 KB
/
profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Useful profile settings and aliases
#
export PS1='% '
shopt -u checkwinsize
shopt -s nocaseglob
export COLUMNS=72
# default terminal settings
if [ "$(tty)" == "/dev/ttyACM0" ]; then
# use the standard editor
export EDITOR=ed
alias vi='echo "ed is the standard editor for"'
else
export EDITOR=vim
fi
# TERM is set by the getty but I want to have it set for other terminals for experimentation
# export COLUMNS=72
# export TERM=tty33-amx
# For "cooked" mode, just reset
alias ttext='stty sane && tput reset'
# For "pass-thru binary" mode, set raw stty (no NL->CRNL, etc) and also send the custom escape to set the firmware into raw mode
alias tbinary='stty raw && printf "\033[?7l\033_ab\234"'
# Modified python telnet client
alias telnet='telnetlib3-client --speed 110 --encoding US-ASCII'
# Other aliases
alias ed='ed -p"* "'
alias zork='dfrotz -r 72 -p ~/.games/zork1.dat'
alias tw='twitter --length 1'
alias ll='ls -ll'
alias fig='pyfiglet -w 72'
alias figlet='pyfiglet -f banner3 -w 72'
alias banner='printerbanner -w 72'
alias clear='tput clear'
alias hint='cat /usr/share/dict/words | grep -x'
# RTTY stream decoders for the ITTY channels (using http://www.whence.com/minimodem/)
alias itty='curl -N -s http://internet-tty.net:8000/ITTY | lame --decode --quiet --mp3input - - | minimodem rtty -i -a -q --rx-one -R 11025 -f -'
alias autostart='curl -N -s http://internet-tty.net:8030/AUTOSTART | lame --decode --quiet --mp3input - - | minimodem rtty -i -a -q -R 11025 -f -'
alias europe='curl -N -s internet-tty.net:8040/EUROPE | lame --decode --quiet --mp3input - - | minimodem 50 -M 1275 -S 1445 -5 -i -a -q -R 11025 -f -'
alias tpix='curl -N -s http://tomhunter.zapto.org:8000/ttypix | lame --decode --quiet --mp3input - - | minimodem rtty -i -a -q --rx-one -R 11025 -f -'
# printer stuff
export IPP_PRINTER_NAME=Teletype
export IPP_PRINTER_INFO="Teletype hardcopy printer"
export IPP_PRINTER_MAKE_AND_MODEL="Teletype Model ASR33"
export IPP_DATA_DIR=~/asr33/cups/data
# Characters in the ITA2 Baudot/Murray code, for emoji to an older teletype
export BAUDOT_CHARS="QWERTYUIOPASDFGHJKLZXCVBNM1234567890-$!&#'()\"/:;?,. "
# do 'mesg' automatically when idle
# mesg n && automesg 30 &
# twitchbot &
#