fix: alias, arch-updates (polybar)
add: vim mergetool
This commit is contained in:
parent
f37f66248f
commit
544bb9ed2c
7 changed files with 35 additions and 16 deletions
|
@ -7,7 +7,7 @@ alias df='df -h'
|
||||||
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
alias dotfiles-mail='/usr/bin/git --git-dir=$HOME/.dotfiles-mail/ --work-tree=$HOME'
|
alias dotfiles-mail='/usr/bin/git --git-dir=$HOME/.dotfiles-mail/ --work-tree=$HOME'
|
||||||
|
|
||||||
alias du='du -hL'
|
alias du='du -h'
|
||||||
|
|
||||||
alias git-update-submodules='
|
alias git-update-submodules='
|
||||||
git submodule update --init --recursive;
|
git submodule update --init --recursive;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
pager = less
|
pager = less
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
[help]
|
[help]
|
||||||
autocorrect = 20
|
autocorrect = 10
|
||||||
[diff]
|
[diff]
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
[difftool]
|
[difftool]
|
||||||
|
@ -18,12 +18,16 @@
|
||||||
d = diff
|
d = diff
|
||||||
b = branch -vv
|
b = branch -vv
|
||||||
logg = log --graph
|
logg = log --graph
|
||||||
|
logo = log --graph --decorate --oneline --all
|
||||||
diffc = diff --cached
|
diffc = diff --cached
|
||||||
|
|
||||||
[merge]
|
[merge]
|
||||||
tool = vimdiff
|
tool = vim_mergetool
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
[mergetool]
|
[mergetool "vim_mergetool"]
|
||||||
prompt = false
|
cmd = vim -f -c "MergetoolStart" "$MERGED" "$BASE" "$LOCAL" "$REMOTE"
|
||||||
|
trustExitCode = true
|
||||||
|
|
||||||
[credential]
|
[credential]
|
||||||
helper = /usr/bin/pass-git-helper
|
helper = /usr/bin/pass-git-helper
|
||||||
[format]
|
[format]
|
||||||
|
@ -33,3 +37,7 @@
|
||||||
smtpuser = tobias@msrg.cc
|
smtpuser = tobias@msrg.cc
|
||||||
smtpencryption = tls
|
smtpencryption = tls
|
||||||
smtpserverport = 587
|
smtpserverport = 587
|
||||||
|
[advice]
|
||||||
|
addIgnoredFile = false
|
||||||
|
[pull]
|
||||||
|
ff = only
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
[mail.serguzim.me:587]
|
[mail.serguzim.me:587]
|
||||||
target=mail/${username}
|
target=mail/${username}
|
||||||
|
|
||||||
|
[github.com]
|
||||||
|
username_extractor=regex_search
|
||||||
|
regex_username=^login: (.*)$
|
||||||
|
target=github.com
|
||||||
|
|
|
@ -13,13 +13,13 @@
|
||||||
[module/arch-updates]
|
[module/arch-updates]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = $HOME/.config/polybar/scripts/arch-updates.sh
|
exec = $HOME/.config/polybar/scripts/arch-updates.sh
|
||||||
interval = 60
|
interval = 300
|
||||||
|
|
||||||
format-prefix = " "
|
format-prefix = " "
|
||||||
format-prefix-foreground = ${colors.foreground-alt}
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-underline = #1794D1
|
format-underline = #1794D1
|
||||||
format = <label>
|
format = <label>
|
||||||
|
|
||||||
click-left = alacritty -e sh -c "sudo pacman -Su; read" &
|
click-left = alacritty -e sh -c "yay -Syu && echo DONE || echo ERROR; read" &
|
||||||
|
|
||||||
label = %output%
|
label = %output%
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
pkg_updates_count=$(pacman -Qu | wc -l)
|
pkg_updates_count=$(checkupdates 2> /dev/null | wc -l)
|
||||||
if [ $((pkg_updates_count)) -gt 0 ]
|
if [ $((pkg_updates_count)) -gt 0 ]
|
||||||
then
|
then
|
||||||
echo $pkg_updates_count
|
echo $pkg_updates_count
|
||||||
|
|
|
@ -38,12 +38,12 @@ endif
|
||||||
call plug#begin('~/.config/vim/plugged')
|
call plug#begin('~/.config/vim/plugged')
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
Plug 'samoshkin/vim-mergetool'
|
||||||
Plug 'fidian/hexmode'
|
Plug 'fidian/hexmode'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
Plug 'itchyny/lightline.vim'
|
Plug 'itchyny/lightline.vim'
|
||||||
Plug 'nanotech/jellybeans.vim'
|
Plug 'nanotech/jellybeans.vim'
|
||||||
Plug 'scrooloose/syntastic'
|
Plug 'scrooloose/syntastic'
|
||||||
Plug 'tpope/vim-fugitive'
|
|
||||||
Plug 'sersorrel/vim-lilypond'
|
Plug 'sersorrel/vim-lilypond'
|
||||||
Plug 'vim-scripts/DoxygenToolkit.vim'
|
Plug 'vim-scripts/DoxygenToolkit.vim'
|
||||||
Plug 'drmikehenry/vim-headerguard'
|
Plug 'drmikehenry/vim-headerguard'
|
||||||
|
@ -101,3 +101,5 @@ let g:syntastic_always_populate_loc_list = 0
|
||||||
let g:syntastic_auto_loc_list = 0
|
let g:syntastic_auto_loc_list = 0
|
||||||
let g:syntastic_check_on_open = 1
|
let g:syntastic_check_on_open = 1
|
||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = 0
|
||||||
|
let g:syntastic_oclint_config_file = '.syntastic_oclint_config'
|
||||||
|
let g:syntastic_c_config_file = '.syntastic_cc_config'
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
[ -f "$HOME/.config/user-dirs.dirs" ] && source $HOME/.config/user-dirs.dirs
|
[ -f "$HOME/.config/user-dirs.dirs" ] && source $HOME/.config/user-dirs.dirs
|
||||||
|
source $HOME/.config/enviroment
|
||||||
|
|
||||||
# Enable colors and change prompt:
|
# Enable colors and change prompt:
|
||||||
autoload -U colors && colors
|
autoload -U colors && colors
|
||||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}
|
autoload -Uz vcs_info
|
||||||
|
precmd()
|
||||||
|
{
|
||||||
|
vcs_info
|
||||||
|
}
|
||||||
|
zstyle ':vcs_info:git*' formats " (%b)" # hash & branch
|
||||||
|
setopt prompt_subst
|
||||||
|
|
||||||
|
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$fg[green]%}\$vcs_info_msg_0_%{$reset_color%}
|
||||||
$%b "
|
$%b "
|
||||||
|
|
||||||
# History in cache directory:
|
# History in cache directory:
|
||||||
|
@ -40,11 +49,6 @@ echo -ne '\e[1 q' # Use beam shape cursor on startup.
|
||||||
autoload edit-command-line; zle -N edit-command-line
|
autoload edit-command-line; zle -N edit-command-line
|
||||||
bindkey '^e' edit-command-line
|
bindkey '^e' edit-command-line
|
||||||
|
|
||||||
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
|
|
||||||
|
|
||||||
# set PATH so it includes user's private bin if it exists
|
|
||||||
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
|
|
||||||
|
|
||||||
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
|
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
|
||||||
|
|
||||||
# Load zsh-syntax-highlighting; should be last.
|
# Load zsh-syntax-highlighting; should be last.
|
||||||
|
|
Loading…
Reference in a new issue