diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2014-04-10 19:16:43 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2014-04-10 19:16:43 +0800 |
commit | c8b7690c7c37fa20dffba4fd65326e846793ce0a (patch) | |
tree | 8e0200995c5b2656fd140744d9ee316191d043e0 | |
parent | 5fc68226dc255908ec5516593fa1b0145da71c54 (diff) | |
download | configfile-c8b7690c7c37fa20dffba4fd65326e846793ce0a.tar.gz configfile-c8b7690c7c37fa20dffba4fd65326e846793ce0a.tar.zst configfile-c8b7690c7c37fa20dffba4fd65326e846793ce0a.zip |
bash_include: 加入彩色 git 歷史紀錄
-rw-r--r-- | bash_include | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bash_include b/bash_include index a9e647f..85bafad 100644 --- a/bash_include +++ b/bash_include @@ -175,7 +175,8 @@ alias resetty='stty $default_tty_setting' # Aliases: Git, GNU Screen, Vim -alias git_history='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=iso' +alias git_log='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=iso' +alias git_log_color='git log --color --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset" --abbrev-commit' alias screen256='screen -T screen-256color' alias vimhtml='vim -c "set ts=2" -c "set sw=2"' @@ -1844,7 +1845,8 @@ function help_function () stopcolor - Disable colorful PS1 prompting <<< Aliases: Git >>> - git_history - Show git history in a more compact format + git_log - Show git log in a more compact format + git_log_color - Show git log in a more colorful format <<< Aliases: GNU Screen >>> screen256 - Start GNU Screen and set TERM to screen-256color |