config: shortcut adjustments
This commit is contained in:
parent
8facce2ba3
commit
097e2142d2
|
@ -1,5 +1,5 @@
|
|||
[Desktop Entry]
|
||||
Exec=/home/janek/.local/bin/scripts/update-keyboard-layout
|
||||
Exec=sh -c "sleep 3 && /home/janek/.local/bin/scripts/update-keyboard-layout"
|
||||
Icon=
|
||||
Name=update-keyboard-layout
|
||||
Path=
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
lg = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --graph
|
||||
lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges
|
||||
lp = log -p --date=local
|
||||
ln = !git --no-pager lo "-$(a=$(git rev-list --count HEAD...@{u} 2>/dev/null); test ${a:-0} -gt 4 && expr $a + 3 || echo 7)" --graph HEAD @{u} 2>/dev/null || git --no-pager lo -7
|
||||
ln = !git --no-pager lo "-$(a=$(git rev-list --count HEAD...@{push} 2>/dev/null); expr $a + 3 \\& ${a:-0} \\> 4 \\| 7)" --color=always --graph HEAD @{u} 2>/dev/null | head -9 || git --no-pager lo -7
|
||||
my = lo --author [Jj]anek
|
||||
standup = my --since yesterday --all
|
||||
co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++'
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
# or the first named ref from the history if there is no upstream yet.
|
||||
if test $# -gt 0
|
||||
then remote="$1"; shift
|
||||
else remote=$(git rev-parse --verify --quiet @{push} || git rev-parse $(git describe --all HEAD~ | cut -d '-' -f-2))
|
||||
else remote=$(git rev-parse --verify --quiet @{push} || git rev-parse $(git describe --all HEAD~ | rev | cut -d '-' -f3- | rev))
|
||||
fi
|
||||
git rebase -i "$remote" "$@"
|
||||
|
|
|
@ -43,7 +43,7 @@ test -f "/usr/lib/libstderred.so" && export LD_PRELOAD="/usr/lib/libstderred.so$
|
|||
# enable pass extensions
|
||||
export PASSWORD_STORE_ENABLE_EXTENSIONS="true"
|
||||
# fzf defaults
|
||||
export FZF_DEFAULT_OPTS='--select-1 --exit-0 --tiebreak=end,length --history=/var/tmp/fzf-history --ansi --bind="alt-enter:execute(test -O {} && $EDITOR {} || sudoedit {}),alt-bspace:execute(gio trash {}),change:top,double-click:execute(xdg-open {})"'
|
||||
export FZF_DEFAULT_OPTS='--select-1 --exit-0 --tiebreak=end,length --history=/var/tmp/fzf-history --ansi --bind="alt-enter:execute(test -O {} && $EDITOR {} || sudoedit {}),alt-bspace:execute(gio trash {}),change:top,double-click:execute(xdg-open {}),alt-c:yank"'
|
||||
FD_BASE="fd --hidden --color=always --no-ignore-vcs"
|
||||
export FZF_DEFAULT_COMMAND="$FD_BASE --type file"
|
||||
export FZF_CTRL_T_COMMAND="$FD_BASE -d 7"
|
||||
|
|
Loading…
Reference in New Issue