Skip to content

Commit

Permalink
Changed zsh prompt, changed git config for difftool
Browse files Browse the repository at this point in the history
  • Loading branch information
rsherstnev committed Feb 21, 2024
1 parent b4a5804 commit 9327a8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@
quotepath = off
safecrlf = warn
editor = vim
[merge]
tool = meld
[diff]
tool = meld
[difftool "meld"]
cmd = meld $LOCAL $REMOTE
[merge]
tool = meld
[mergetool "meld"]
prompt = false
keepBackup = true
cmd = meld "$LOCAL" "$MERGED" "$REMOTE" --output="$MERGED"
[alias]
lore = log --all --pretty=format:'%C(174)%h%C(auto)%d %C(114)[%s]'
df = difftool --dir-diff
mt = mergetool -t meld
6 changes: 3 additions & 3 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=227'
export ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=227'
export ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]='fg=125'
export ZSH_HIGHLIGHT_STYLES[path]='fg=248,underline'
# Настройки плагина zsh-autosuggestions
# TODO

setopt SHARE_HISTORY
setopt EXTENDED_HISTORY
Expand Down Expand Up @@ -118,10 +116,12 @@ zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath'

bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search
# Настройки плагина zsh-autosuggestions
bindkey '^ ' autosuggest-accept

# Настройки Shell Prompt
export PROMPT='$FG[167]%n$FG[217]@$FG[215]%M $FG[109]%~ $(git_prompt_info)%{$reset_color%}$FG[224]# '
export PROMPT='$FG[224]┌──[%F{8}%*%f$FG[224]]-[$FG[167]%n$FG[217]@$FG[215]%M$FG[224]]-[$FG[109]%~$FG[224]] $(git_prompt_info)%{$reset_color%}
└─$FG[224]# '
export ZSH_THEME_GIT_PROMPT_PREFIX="$FG[145]git:[$FG[228]"
export ZSH_THEME_GIT_PROMPT_DIRTY="$FG[145]]:[$FG[228]✗$FG[145]] "
export ZSH_THEME_GIT_PROMPT_CLEAN="$FG[145]] "
Expand Down

0 comments on commit 9327a8f

Please sign in to comment.