Merge branch 'main' of github.com:TheK4n/dotfiles

This commit is contained in:
thek4n 2024-01-13 00:57:55 +03:00
commit 875dbd6d70
6 changed files with 11 additions and 6 deletions

View File

@ -22,7 +22,7 @@ alias lsl='_d() { ls -lhFA --color=always "${1:-.}" | $PAGER ; }; _d'
alias _='sudo' alias _='sudo'
alias root='sudo -i TMOUT=450' alias root='sudo -i TMOUT=450'
alias rm='rm -ir' alias rm='rm -Ivr --one-file-system'
alias mkdir='mkdir -pv' alias mkdir='mkdir -pv'
alias cd..='cd ..' alias cd..='cd ..'

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
set -e set -e
if command -v makepkg >/dev/null && [ -e PKGBUILD ]; then if command -v makepkg >/dev/null && [ -e PKGBUILD ]; then
if [ -e VERSION ]; then
sed -i "s/pkgver=.\+/pkgver=$(cat VERSION)/" PKGBUILD
git add PKGBUILD
fi
makepkg --printsrcinfo > .SRCINFO makepkg --printsrcinfo > .SRCINFO
git add .SRCINFO git add .SRCINFO
exit exit

View File

@ -45,7 +45,7 @@ map('n', '-', '<C-x>')
map({"n", "v"}, [[\]], ',') map({"n", "v"}, [[\]], ',')
-- Select all -- Select all
map('n', '<C-a>', 'ggVG') map('n', '<C-a>', 'mvggVG')
-- Scroll tabs -- Scroll tabs

View File

@ -2,9 +2,8 @@ return {
'ggandor/leap.nvim', 'ggandor/leap.nvim',
config = function() config = function()
require('leap').opts.safe_labels = {} require('leap').opts.safe_labels = {}
local set = vim.keymap.set
set({'n', 'v'}, 'J', '<Plug>(leap-forward-to)')
set({'n', 'v'}, 'K', '<Plug>(leap-backward-to)')
end, end,
keys = {
{ 'J', '<Plug>(leap-forward-to)' },
{ 'K', '<Plug>(leap-backward-to)' },
},
} }

View File

@ -1,5 +1,6 @@
alias -g L='| $PAGER' alias -g L='| $PAGER'
alias -g HL='| highlight -O ansi -S ' alias -g HL='| highlight -O ansi -S '
alias -g JSON='| json HL json'
alias -g ALL="&>/dev/null" alias -g ALL="&>/dev/null"
alias -g BG="ALL &" alias -g BG="ALL &"
alias -g ?='| grep' alias -g ?='| grep'

0
install-hooks/git/post-install Executable file → Normal file
View File