Compare commits
2 commits
eae6adf1d5
...
0f5f8c21fd
Author | SHA1 | Date | |
---|---|---|---|
0f5f8c21fd | |||
a7b9cb6d55 |
7 changed files with 12 additions and 23 deletions
|
@ -7,6 +7,7 @@ alias .ezsh='$EDITOR $HOME/.config/zsh/.zshrc'
|
||||||
alias .f='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias .f='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
|
|
||||||
alias aliases='$EDITOR ~/.config/aliasrc && source ~/.config/aliasrc'
|
alias aliases='$EDITOR ~/.config/aliasrc && source ~/.config/aliasrc'
|
||||||
|
alias artisan='./artisan'
|
||||||
|
|
||||||
alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
|
alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,6 @@ BatchInstall = true
|
||||||
NewsOnUpgrade = true
|
NewsOnUpgrade = true
|
||||||
RemoveMake = yes
|
RemoveMake = yes
|
||||||
|
|
||||||
[bin]
|
#[bin]
|
||||||
Sudo = doas
|
#Sudo = doas
|
||||||
SudoFlags = --
|
#SudoFlags = --
|
||||||
|
|
|
@ -13,6 +13,7 @@ call plug#begin('~/.config/vim/plugged')
|
||||||
Plug 'drmikehenry/vim-headerguard'
|
Plug 'drmikehenry/vim-headerguard'
|
||||||
"Emmet is a plugin which greatly improves HTML & CSS workflow
|
"Emmet is a plugin which greatly improves HTML & CSS workflow
|
||||||
Plug 'mattn/emmet-vim'
|
Plug 'mattn/emmet-vim'
|
||||||
|
Plug 'easymotion/vim-easymotion'
|
||||||
|
|
||||||
" Eye-Candy
|
" Eye-Candy
|
||||||
Plug 'machakann/vim-highlightedyank'
|
Plug 'machakann/vim-highlightedyank'
|
||||||
|
@ -99,6 +100,7 @@ endif
|
||||||
|
|
||||||
map <leader>b :Break<CR>
|
map <leader>b :Break<CR>
|
||||||
map <leader>n :NERDTreeToggle<CR>
|
map <leader>n :NERDTreeToggle<CR>
|
||||||
|
map <Leader>m <Plug>(easymotion-prefix)
|
||||||
|
|
||||||
nnoremap <CR> :noh<CR><CR>
|
nnoremap <CR> :noh<CR><CR>
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,7 @@ plugins=(
|
||||||
httpie
|
httpie
|
||||||
jump
|
jump
|
||||||
kubectl
|
kubectl
|
||||||
|
laravel5
|
||||||
safe-paste
|
safe-paste
|
||||||
vi-mode
|
vi-mode
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
|
|
||||||
alias get_priv="sudo"
|
|
||||||
if [ -x "$(command -v doas)" ]
|
|
||||||
then
|
|
||||||
alias get_priv="doas"
|
|
||||||
fi
|
|
||||||
|
|
||||||
get_priv echo
|
|
||||||
|
|
||||||
paru -Syu
|
paru -Syu
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
@ -21,7 +13,7 @@ fi
|
||||||
echo "==================================================================="
|
echo "==================================================================="
|
||||||
|
|
||||||
|
|
||||||
get_priv checkservices
|
sudo checkservices
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "CHECKSERVICES SUCCEDEED"
|
echo "CHECKSERVICES SUCCEDEED"
|
||||||
|
|
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
priv_cmd="sudo"
|
|
||||||
|
|
||||||
if [ -x "$(command -v doas)" ]
|
|
||||||
then
|
|
||||||
priv_cmd="doas --"
|
|
||||||
fi
|
|
||||||
|
|
||||||
edit_directory="$HOME/.cache/edit/"
|
edit_directory="$HOME/.cache/edit/"
|
||||||
|
|
||||||
filehash=$(readlink -fn "$1" | md5sum | awk '{ print $1 }')
|
filehash=$(readlink -fn "$1" | md5sum | awk '{ print $1 }')
|
||||||
|
@ -23,11 +16,11 @@ group=$(id -gn)
|
||||||
|
|
||||||
echo "Editing $1 in $filepath as $user:$group"
|
echo "Editing $1 in $filepath as $user:$group"
|
||||||
|
|
||||||
$priv_cmd cp "$1" "$filepath"
|
sudo cp "$1" "$filepath"
|
||||||
$priv_cmd chown $user:$group "$filepath"
|
sudo chown $user:$group "$filepath"
|
||||||
|
|
||||||
$EDITOR "$filepath"
|
$EDITOR "$filepath"
|
||||||
|
|
||||||
$priv_cmd cp "$filepath" "$1"
|
sudo cp "$filepath" "$1"
|
||||||
|
|
||||||
rm "$filepath"
|
rm "$filepath"
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
echo "#Server = https://archive.archlinux.org/repos/$(date +"%Y/%m/%d")/\$repo/os/\$arch"
|
echo "#Server = https://archive.archlinux.org/repos/$(date +"%Y/%m/%d")/\$repo/os/\$arch"
|
||||||
|
|
||||||
curl -Ls "https://www.archlinux.org/mirrorlist/?country=AT&country=BY&country=BE&country=BA&country=BG&country=HR&country=CZ&country=DK&country=FI&country=FR&country=DE&country=GR&country=HU&country=IS&country=IE&country=IT&country=LV&country=LT&country=LU&country=NL&country=MK&country=NO&country=PL&country=PT&country=RO&country=RS&country=SK&country=SI&country=ES&country=SE&country=CH&country=UA&country=GB&protocol=https&ip_version=4" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 25 -
|
curl -Ls "https://archlinux.org/mirrorlist/?country=AT&country=BE&country=CZ&country=DK&country=FI&country=FR&country=DE&country=IT&country=LU&country=NL&country=PL&protocol=https&ip_version=4" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 25 -
|
||||||
|
|
Loading…
Reference in a new issue