X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bashrc;h=3683fe49913f3b665ea318da834445761938abc4;hb=refs%2Fheads%2Fpython2;hp=41b27c6cf0d8ef40dc8f00c6176c2ee17a6ed7e3;hpb=eb5b74f1fcbe92952fd0a32315363b043a2d5764;p=myplc.git diff --git a/bashrc b/bashrc index 41b27c6..3683fe4 100644 --- a/bashrc +++ b/bashrc @@ -24,23 +24,27 @@ function node_dbg () { [[ -z "$@" ]] && { echo "Usage: $0 hostname [command]" ; return 1; } node_key /etc/planetlab/debug_ssh_key.rsa "$@" } -function node_boot () { - [[ -z "$@" ]] && { echo "Usage: $0 hostname [command]" ; return 1; } - node_key /etc/planetlab/root_ssh_key.rsa "$@" -} - function nodes_dbg () { [[ -z "$@" ]] && { echo "Usage: $0 hosts_file [command]" ; return 1; } node_keys /etc/planetlab/debug_ssh_key.rsa "$@" } -function nodes_boot () { - [[ -z "$@" ]] && { echo "Usage: $0 hosts_file [command]" ; return 1; } - nodes_key /etc/planetlab/root_ssh_key.rsa "$@" -} - -function clear_keys () { +function clear_known_hosts () { for hostname in "$@"; do sed -i "/$hostname/d" ~/.ssh/known_hosts done -} - +} + +# convenience +alias mtail=mtail.py + +# navigators - alphabetical +alias gobmsource="cd /usr/share/bootmanager" +alias goboot="cd /var/www/html/boot" +alias godrupal="cd /var/www/html/planetlab" +alias gohttplog="cd /var/log/httpd" +alias goinit="cd /etc/plc.d" +alias golog="cd /var/log/" +alias goplcapi="cd /usr/share/plc_api" +alias gosqllog="cd /var/lib/pgsql/data/pg_log" +alias goyum="cd /var/www/html/install-rpms" +