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:
parent
8969652374
commit
929e8ae727
10
bash_aliases
10
bash_aliases
@ -20,10 +20,8 @@ alias dt='date "+%F %T"'
|
||||
if [ "$BASH" ]; then
|
||||
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'
|
||||
alias ehistory='tail -f ~/.bash_eternal_history'
|
||||
#export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo "`date +'%y.%m.%d-%H:%M:%S:'`" $USER "$(pwd)" "$(history 1 | cut -c8-)" >> /var/log/hist'
|
||||
#alias ehistory='tail -f /var/log/hist'
|
||||
readonly PROMPT_COMMAND
|
||||
alias ehistory='cat ~/.bash_eternal_history|grep $@'
|
||||
#readonly PROMPT_COMMAND
|
||||
readonly HISTSIZE
|
||||
readonly HISTFILE
|
||||
readonly HOME
|
||||
@ -31,11 +29,11 @@ if [ "$BASH" ]; then
|
||||
readonly HISTCONTROL
|
||||
fi
|
||||
|
||||
|
||||
alias install='sudo apt-get install'
|
||||
alias remove='sudo apt-get remove'
|
||||
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 ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
|
||||
alias tux="tmux a||tmux"
|
||||
|
@ -23,6 +23,9 @@ function initify(){
|
||||
git init
|
||||
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
|
||||
#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
|
||||
}
|
||||
export -f initify
|
||||
|
3
bashrc
3
bashrc
@ -117,7 +117,10 @@ if ! shopt -oq posix; then
|
||||
fi
|
||||
fi
|
||||
export CLASSPATH=/home/stonewareslord/ownCloud/school/compsci/Year2/classes/gridworld.jar
|
||||
PATH=$PATH:/home/stonewareslord/tmp/ucpp/ucpp/
|
||||
function tsh(){
|
||||
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
|
||||
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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user