From 1ede0966fd9dbea1afe69d394f1e871fe17c0e1e Mon Sep 17 00:00:00 2001 From: akuker Date: Sun, 13 Sep 2020 15:55:14 -0500 Subject: [PATCH] Adding some shortcuts that can be added to .bashrc to make developers' lives easier --- src/developer_shortcuts.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/developer_shortcuts.sh diff --git a/src/developer_shortcuts.sh b/src/developer_shortcuts.sh new file mode 100644 index 0000000..175c252 --- /dev/null +++ b/src/developer_shortcuts.sh @@ -0,0 +1,19 @@ +# To use this, add the following to the end of your /home//.bashrc file +# +# if [ -f ~/RASCSI/src/developer_shortcuts.sh ]; then +# source ~/RASCSI/src/developer_shortcuts.sh +# fi +# +alias rascsisrc='cd ~/RASCSI/src/raspberrypi' + +alias rascsirebuild='cd ~/RASCSI/src/raspberrypi && sudo systemctl stop rascsi && make clean && make all DEBUG=1 -j && sudo make install && sudo systemctl start rascsi' + +alias rascsirestart='sudo systemctl restart rascsi.service' +alias rascsistop='sudo systemctl stop rascsi.service' +alias rascsistart='sudo systemctl start rascsi.service' + +# This command only works on a linux machine with a SCSI card. +alias scsirescan='echo "- - -" > /sys/class/scsi_host/host0/scan' +alias scsidelete='echo Reminder: the command to delete a SCSI device is: "echo 1 > /sys/class/scsi_device/h:c:t:l/device/delete"' + +