Skip to content

Commit c72acfc

Browse files
add mv alias
1 parent 219d00d commit c72acfc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

zsh/.zshrc

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ HISTFILE=$XDG_STATE_HOME/zsh/history
1414
autoload -U compinit
1515
compinit -d "${XDG_DATA_DIR}/zsh"
1616

17+
setopt inc_append_history
18+
1719
# prompt
1820
PS1='%F{yellow}%n@%m% %f %F{magenta}%~%f %F{yellow}>%f '
1921

zsh/aliases/aliases.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ alias tf='terraform'
2424

2525
alias vim="nvim"
2626

27-
alias ls='ls --color=auto -hv'
27+
#alias ls='ls --color=auto -hv'
2828
alias grep='grep --color=auto'
2929
alias diff='diff --color=auto'
30-
alias ip='ip -c=auto'
30+
alias ip='ip -c=auto'
31+
32+
# -i causes mv to write a prompt to standard error before moving a file that would overwrite an existing
33+
# file. If the response from the standard input begins with the character ‘y’ or ‘Y’, the move is attempted
34+
alias mv='mv -i'

0 commit comments

Comments
 (0)