mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
New cuting edges aliases
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
4ca1f0fd8b
commit
c71471ce98
1 changed files with 11 additions and 0 deletions
|
|
@ -54,10 +54,21 @@ alias unexport='unset'
|
|||
|
||||
alias whereami=display_info
|
||||
|
||||
alias week='date +%V'
|
||||
alias hexdump='hexdump -C'
|
||||
|
||||
alias rm='rm -i'
|
||||
alias cp='cp -i'
|
||||
alias mv='mv -i'
|
||||
|
||||
# Use Git’s colored diff when available
|
||||
hash git &>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
function diff() {
|
||||
git diff --no-index --color-words "$@"
|
||||
}
|
||||
fi
|
||||
|
||||
# zsh is able to auto-do some kungfoo
|
||||
# depends on the SUFFIX :)
|
||||
if [ ${ZSH_VERSION//\./} -ge 420 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue