This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
41 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,21 @@ | ||
# -*- sh -*- | ||
### genehack bash aliases | ||
|
||
# $Id$ | ||
# $URL$ | ||
|
||
# prevent some mistakes | ||
alias cp="cp -i" | ||
alias mv="mv -i" | ||
alias rm="rm -i" | ||
|
||
# modify ls | ||
#if shopt -q login_shell ; then | ||
if [ $OS_TYPE = 'linux' ]; then | ||
eval `dircolors -b` | ||
alias ls='/bin/ls --color=auto --classify' | ||
elif [ $GENEHACK_LOCATION = 'LAPTOP' ]; then | ||
eval `/opt/local/bin/dircolors -b` | ||
alias ls='/opt/local/bin/ls --color=auto --classify' | ||
fi | ||
#fi | ||
alias grep='grep --color=auto' | ||
|
||
if [ -e /Applications/Emacs.app/Contents/MacOS/Emacs ]; then | ||
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs' | ||
if [ $OS_TYPE = 'linux' ]; then | ||
eval `dircolors -b` | ||
alias ls='/bin/ls --color=auto --classify' | ||
elif [ $GENEHACK_LOCATION = 'LAPTOP' ]; then | ||
eval `/opt/local/bin/dircolors -b` | ||
alias ls='/opt/local/bin/ls --color=auto --classify' | ||
fi | ||
|
||
# ssh shortcuts | ||
alias gho='ssh genehack.org' | ||
alias ghc='ssh genehack.com' | ||
alias ghn='ssh genehack.net' | ||
|
||
# development | ||
alias cp="cp -i" | ||
alias find-common='cut -f1 -d" " ~/.bash_history | sort | uniq -c | sort -nr | head -n 25' | ||
alias grep='grep --color=auto' | ||
alias mv="mv -i" | ||
alias pe-extern='svn pe svn:externals' | ||
alias pe-ignore='svn pe svn:ignore' | ||
alias ps-id='svn ps svn:keywords "Id URL"' | ||
alias rm="rm -i" | ||
|
||
alias find-common='cut -f1 -d" " ~/.bash_history | sort | uniq -c | sort -nr | head -n 25' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
# -*- sh -*- | ||
# ~/.bash_logout: executed by bash(1) when login shell exits. | ||
|
||
# $Id$ | ||
# $URL$ | ||
|
||
clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
#! /bin/sh | ||
|
||
# $Id$ | ||
# $URL$ | ||
|
||
COLOR_BIN=$HOME/bin/color | ||
|
||
if [ ! -d $HOME/bin ]; then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
# $Id$ | ||
|
||
startup_message off | ||
|
||
screen -t TOP 0 top | ||
screen -t sh 1 bash | ||
|
||
#blankerprg watch -n 60 clear && "figlet -c `date \"+%A%n%B %d, %G%n%I:%M%P\"`" && cowsay `fortune` | ||
idle 3600 blanker | ||
hardstatus alwayslastline "%{.kY} <%H> %{.bW} %-w%{.rW}%n %t%{-}%+w %=%{.kR} [%l] %{.kw} %D %d %M %Y %c:%s" | ||
|
||
screen -t emacs 1 emacs | ||
screen -t sh 2 bash | ||
screen -t sh 3 bash | ||
|
||
bindkey -k kb stuff ^H | ||
alwayslastline "%{.kY} <%H> %{.bW} %-w%{.rW}%n %t%{-}%+w %=%{.kR} [%l] %{.kw} %D %d %M %Y %c:%s" | ||
|
||
select 1 |
Oops, something went wrong.