Compare commits

..

No commits in common. "0f5f8c21fdfbdab18cec25bf518473e2c6739dce" and "eae6adf1d5d3013192e237b1a864d3186afa6aea" have entirely different histories.

7 changed files with 23 additions and 12 deletions

View file

@ -7,7 +7,6 @@ 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'

View file

@ -5,6 +5,6 @@ BatchInstall = true
NewsOnUpgrade = true NewsOnUpgrade = true
RemoveMake = yes RemoveMake = yes
#[bin] [bin]
#Sudo = doas Sudo = doas
#SudoFlags = -- SudoFlags = --

View file

@ -13,7 +13,6 @@ 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'
@ -100,7 +99,6 @@ 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>

View file

@ -91,7 +91,6 @@ plugins=(
httpie httpie
jump jump
kubectl kubectl
laravel5
safe-paste safe-paste
vi-mode vi-mode

View file

@ -1,5 +1,13 @@
#!/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
@ -13,7 +21,7 @@ fi
echo "===================================================================" echo "==================================================================="
sudo checkservices get_priv checkservices
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "CHECKSERVICES SUCCEDEED" echo "CHECKSERVICES SUCCEDEED"

View file

@ -2,6 +2,13 @@
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 }')
@ -16,11 +23,11 @@ group=$(id -gn)
echo "Editing $1 in $filepath as $user:$group" echo "Editing $1 in $filepath as $user:$group"
sudo cp "$1" "$filepath" $priv_cmd cp "$1" "$filepath"
sudo chown $user:$group "$filepath" $priv_cmd chown $user:$group "$filepath"
$EDITOR "$filepath" $EDITOR "$filepath"
sudo cp "$filepath" "$1" $priv_cmd cp "$filepath" "$1"
rm "$filepath" rm "$filepath"

View file

@ -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://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 - 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 -