some feats

This commit is contained in:
thek4n 2024-11-02 18:20:55 +03:00
parent 1c508c6f39
commit 0fc4f945bc
4 changed files with 47 additions and 10 deletions

View File

@ -56,6 +56,7 @@ map('n',
{remap = false, silent = true}
)
map('n', 'q:', ':')
map('n', 'Ж', ':')
map('n', '<Enter>', 'o<ESC>')

View File

@ -6,21 +6,27 @@ _f() { true ; }
# colors
if [ -x "$(command -v dircolors)" ]; then
export LS_OPTIONS="--color=auto"
LS_OPTIONS=(--color=auto -v)
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias grep='grep $LS_OPTIONS'
alias fgrep='fgrep $LS_OPTIONS'
alias ls='ls -v $LS_OPTIONS'
alias ls='ls $LS_OPTIONS'
fi
alias l.='ls -AFv --ignore="*"'
alias ll='ls -lhFv'
alias la='ls -AFv'
alias lla='ls -lhFAv'
alias ll.='ls -lhFAv --ignore="*"'
alias l.='ls -AF --ignore="*"'
alias ll='ls -lhF'
alias la='ls -AF'
alias lla='ls -lhFA'
alias ll.='ls -lhFA --ignore="*"'
alias lsl='_d() { ls -lhFA --color=always "${1:-.}" | $PAGER ; }; _d'
GREP_OPTIONS=(
--color=auto
--binary-files=without-match
--exclude-dir=.git
--exclude-dir=.svn
)
alias grep='grep $GREP_OPTIONS'
alias _='sudo'
alias root='sudo -i TMOUT=450'

View File

@ -278,4 +278,31 @@ bak() {
f() {
find . -name "*${1}*"
}
}
mirror-site() (
set -eu
local -r name=$1; shift
mkdir -p "${name}" && cd "${name}"
local -r user_agent="Mozilla/5.0 ..."
wget \
--page-requisites \
--convert-links \
--adjust-extension \
--restrict-file-names=ascii \
--span-hosts \
--random-wait \
--execute robots=off \
--recursive \
--timestamping \
-l inf \
--no-remove-listing \
--no-parent \
--user-agent "$user_agent" \
--reject '*.woff*,*.ttf,*.eot,*.js' \
--tries 10 \
$@
)

3
home/user/.sqliterc Normal file
View File

@ -0,0 +1,3 @@
.bail on
.mode column
.headers on