Commits

Anonymous committed 468936c

Cleanup of shell scripts

Comments (0)

Files changed (4)

.bash/tmux.sh

-#!/bin/sh
-
-if $(tmux has-session); then
-    tmux attach-session
-else tmux new-session
-fi

.go.sh

-#!/bin/sh
-#
-# .go.sh 
-# Configuration of shell variables for the Go programming language
-# Intended to be called from bash/ksh/sh profiles
-#
-OS="`uname -s`"
-ARCH="`uname -m`"
-# Only the os's that Go claims to support
-case $OS in
-    Linux)
-        export GOOS="linux"
-        ;;
-    FreeBSD)
-        export GOOS="freebsd"
-        ;;
-    Darwin)
-        export GOOS="darwin"
-        ;;
-esac
-# Hopefully this catches all the possible variations of x86/amd64
-# Maybe someday ARM will be here too
-case $ARCH in
-    i386)
-        export GOARCH="386"
-        ;;
-    i686)
-        export GOARCH="386"
-        ;;      
-    x86_64)
-        export GOARCH="amd64"
-        ;;
-    amd64)
-        export GOARCH="amd64"
-        ;;
-esac
-unset $ARCH $OS
-#!/bin/bash
+#!/bin/sh
 #########################################################
 # runschroot.sh : run programs from in a schroot easily #
 #########################################################
+#!/bin/sh
+
+if $(tmux has-session); then
+    tmux attach-session
+else tmux new-session
+fi