From 285d9961e53e011ba119db4fdaf4474817624cfd Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Mon, 16 Mar 2020 15:38:27 +0100 Subject: Made some scp scripts --- bin/uio-get | 2 ++ bin/uio-send | 2 ++ bin/usbInf | 7 +++++++ mac/zshrc | 6 ++++-- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 bin/uio-get create mode 100755 bin/uio-send create mode 100755 bin/usbInf diff --git a/bin/uio-get b/bin/uio-get new file mode 100755 index 0000000..392e957 --- /dev/null +++ b/bin/uio-get @@ -0,0 +1,2 @@ +#!/bin/sh +scp jakobste@login.ifi.uio.no:/uio/hume/student-u27/jakobste/$1 ~/Downloads/ diff --git a/bin/uio-send b/bin/uio-send new file mode 100755 index 0000000..ad3f73b --- /dev/null +++ b/bin/uio-send @@ -0,0 +1,2 @@ +#!/bin/sh +scp $1 jakobste@login.ifi.uio.no:/uio/hume/student-u27/jakobste/Downloads/ diff --git a/bin/usbInf b/bin/usbInf new file mode 100755 index 0000000..14e4bf0 --- /dev/null +++ b/bin/usbInf @@ -0,0 +1,7 @@ +system_profiler SPUSBDataType \ + | awk ' + /Product ID:/{p=$3} + /Vendor ID:/{v=$3} + /Manufacturer:/{sub(/.*: /,""); m=$0} + /Location ID:/{sub(/.*: /,""); printf("%s:%s %s (%s)\n", v, p, $0, m);} + ' diff --git a/mac/zshrc b/mac/zshrc index efd0cab..f657451 100644 --- a/mac/zshrc +++ b/mac/zshrc @@ -69,11 +69,13 @@ export path alias lamp='/Users/jakobstendahl/.lamp.sh' alias uio-linux='ssh -YC jakobste@login.ifi.uio.no' -alias uio-send='scp $1 jakobste@login.ifi.uio.no:/uio/hume/student-u27/jakobste/Downloads/' -alias uio-get='scp jakobste@login.ifi.uio.no:/uio/hume/student-u27/jakobste/$1 .' alias krak='/Applications/GitKraken.app/Contents/MacOS/GitKraken -p "$(PWD)" &>> /dev/null &' alias lsp="ps -ax | grep" alias lsa="ls -la" +alias lsg="ls | grep" +alias lsag="ls -la | grep" + +alias ls="tput setaf 3 && echo \"'lsa' for 'ls -la', \n'lsg' for 'ls | grep',\n'lsag' for 'ls -la | grep',\n'lsp' for 'ps -ax |grep'\" && tput sgr0 && ls" # man pages in colors man() { -- cgit v1.2.3