Added searching for ehistory command instead of tailf. Added autoremove and fixed upgrade alias. Added offline mode to initify. Added autojump and ucpp in bashrc.

This commit is contained in:
Austen Adler 2014-06-13 14:14:57 -04:00
parent 8969652374
commit 929e8ae727
3 changed files with 10 additions and 6 deletions

View File

@ -20,10 +20,8 @@ alias dt='date "+%F %T"'
if [ "$BASH" ]; then if [ "$BASH" ]; then
export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S " export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S "
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "$(pwd)" "$(history 1 | cut -c8-)" >> ~/.bash_eternal_history' export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "$(pwd)" "$(history 1 | cut -c8-)" >> ~/.bash_eternal_history'
alias ehistory='tail -f ~/.bash_eternal_history' alias ehistory='cat ~/.bash_eternal_history|grep $@'
#export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "$(pwd)" "$(history 1 | cut -c8-)" >> /var/log/hist' #readonly PROMPT_COMMAND
#alias ehistory='tail -f /var/log/hist'
readonly PROMPT_COMMAND
readonly HISTSIZE readonly HISTSIZE
readonly HISTFILE readonly HISTFILE
readonly HOME readonly HOME
@ -31,11 +29,11 @@ if [ "$BASH" ]; then
readonly HISTCONTROL readonly HISTCONTROL
fi fi
alias install='sudo apt-get install' alias install='sudo apt-get install'
alias remove='sudo apt-get remove' alias remove='sudo apt-get remove'
alias update='sudo apt-get update' alias update='sudo apt-get update'
alias upgrade='sudo apt-get update && sudo apt-get upgrade' alias upgrade='sudo apt-get upgrade'
alias autoremove='sudo apt-get autoremove'
alias ..='cl ..' alias ..='cl ..'
alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'" alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
alias tux="tmux a||tmux" alias tux="tmux a||tmux"

View File

@ -23,6 +23,9 @@ function initify(){
git init git init
git remote add origin git@98.26.78.121:$1/$2.git git remote add origin git@98.26.78.121:$1/$2.git
git remote add https https://98.26.78.121/gitlab/$1/$2.git git remote add https https://98.26.78.121/gitlab/$1/$2.git
#Offline mode
git remote add oOrigin git@10.0.1.200:$1/$2.git
git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git
git remote -v git remote -v
} }
export -f initify export -f initify

3
bashrc
View File

@ -117,7 +117,10 @@ if ! shopt -oq posix; then
fi fi
fi fi
export CLASSPATH=/home/stonewareslord/ownCloud/school/compsci/Year2/classes/gridworld.jar export CLASSPATH=/home/stonewareslord/ownCloud/school/compsci/Year2/classes/gridworld.jar
PATH=$PATH:/home/stonewareslord/tmp/ucpp/ucpp/
function tsh(){ function tsh(){
ssh $* -t 'tmux a || tmux || /bin/bash' ssh $* -t 'tmux a || tmux || /bin/bash'
} }
[[ -s /home/stonewareslord/.autojump/etc/profile.d/autojump.sh ]] && source /home/stonewareslord/.autojump/etc/profile.d/autojump.sh [[ -s /home/stonewareslord/.autojump/etc/profile.d/autojump.sh ]] && source /home/stonewareslord/.autojump/etc/profile.d/autojump.sh
export PATH=/home/stonewareslord/.autojump/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/tmp/ucpp/ucpp/:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp:/home/stonewareslord/hitchhikers/bin/ucpp/ucpp
alias frcbot='python build'