To add the time/date in the history:
HISTTIMEFORMAT="%d/%m/%y %T "
Shortcut for "ls -l":
alias ll="ls -l"
Shortcut for a fast maven clean build:
alias mvnci="mvn clean install -DskipTests -Dcheckstyle.skip=true"
Modify the prompt:
export PS1="\n\u@\h \w\n$ "
Always activate the color in grep:
export GREP_OPTIONS="--color"
Add magic to the space !cmd ...
bind Space:magic-space
Result:
__________________________.bashrc __________________________
# .bashrc
HISTTIMEFORMAT="%d/%m/%y %T "
export PS1="\n\u@\h \w\n$ "
export GREP_OPTIONS="--color"
alias ll='ls -l'
alias mvnci="mvn clean install -DskipTests -Dcheckstyle.skip=true"
bind Space:magic-space
__________________________.bashrc __________________________
Extra
To show line numbers in vi, modify the .vimrc (once inside vi, you can disable it if you want to copy the line without the number with: ":set number!"):
set number
No comments:
Post a Comment