a2cloud/setup/a2cloud-aliases

76 lines
2.3 KiB
Plaintext
Raw Normal View History

#! /bin/bash
# vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=sh:
2015-10-30 10:56:39 +00:00
alias a2cloud-setup='wget -qO /tmp/a2cloud-setup ivanx.com/a2cloud/setup/; source /tmp/a2cloud-setup'
alias a2cloud-help='(IFS=""; while read thisLine; do [[ ${#thisLine} -eq 0 ]] && echo || echo "$(tput bold)${thisLine%% *}$(tput sgr0) ${thisLine#* }"; done < /usr/local/etc/a2cloud-help.txt | more)'
alias a2cloud-version='cat /usr/local/etc/A2CLOUD-version'
alias a2cloud-update='a2cloud-setup'
alias system-shutdown='sudo shutdown -h now'
alias system-restart='sudo shutdown -r now'
alias welcome-message-edit='sudo nano /etc/motd'
alias showip='ifconfig eth0 | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1'
alias showmac='ifconfig eth0 | grep "HWaddr" | cut -dH -f2 | cut -c7-23'
alias showip-wifi='ifconfig wlan0 | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1'
alias showmac-wifi='ifconfig wlan0 | grep "HWaddr" | cut -dH -f2 | cut -c7-23'
alias ifreset='sudo rm /etc/udev/rules.d/70-persistent-net.rules; echo Interfaces removed. You should system-restart now.'
alias adtpro-stop='sudo pkill -f [A]DTPro'
alias adtpro-restart='sudo pkill -f [A]DTPro; while [[ $(ps aux | grep [A]DTPro) ]]; do sleep 1; done; adtpro-start'
alias term='source term'
alias vsd1='source /usr/local/bin/vsd -d1'
alias vsd2='source /usr/local/bin/vsd -d2'
forfloppy () { [[ $1 ]] && { mv "$1" /usr/local/adtpro/disks && echo "moved $1 to /usr/local/adtpro/disks" || echo "Unsuccessful. $1 was not moved."; } || echo "Usage: forfloppy imageFileName"; }
alias vsdsync='adtpro-restart'
alias nulib=nulib2
alias a2cat='acmd -l'
VSD1=$(readlink /usr/local/adtpro/disks/Virtual.po)
VSD2=$(readlink /usr/local/adtpro/disks/Virtual2.po)
ADTDISKS=/usr/local/adtpro/disks; A2DISKS=/usr/local/adtpro/disks
A2CLOUD=/usr/local/adtpro/disks/A2CLOUD.HDV
GSDISKS=/usr/local/share/gsdisks
GSHD=/usr/local/share/gsdisks/gsoshd.hdv
ttytter () { ( ansi=; seven=; [[ $(grep ttyUSB <<< $myTTY) || $(grep ttyAMA <<< $myTTY) ]] && { seven="-seven"; [[ $TERM=="ansi" || $TERM=="pcansi" ]] && ansi="-ansi"; }; [[ -f /usr/bin/ttytter ]] && /usr/bin/ttytter -ssl $seven $ansi $@ || /usr/local/bin/ttytter -ssl $seven $ansi $@ ); }
alias raspple-update='rasppleii-update'
alias rasappleii-update='rasppleii-update'
alias rasapple-update='rasppleii-update'