diff --git a/Makefile b/Makefile index 2788661..c1a4975 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: symlinks setup-vim +all: symlinks symlinks: chmod +x make_symlinks.sh diff --git a/make_symlinks.sh b/make_symlinks.sh index b4670c9..8f6d1cd 100755 --- a/make_symlinks.sh +++ b/make_symlinks.sh @@ -5,3 +5,8 @@ test -f ../.zsh_functions || ln -sv .dotfiles/zsh_functions ../.zsh_functions test -f ../.vimrc || ln -sv .dotfiles/vimrc ../.vimrc test -f ../.gitconfig || ln -sv .dotfiles/gitconfig ../.gitconfig test -f ../.globalgitignore || ln -sv .dotfiles/globalgitignore ../.globalgitignore +if ! test -f ../.config/nvim/init.vim +then + mkdir -vp ../.config/nvim + ln -sv ~/.vimrc ../.config/nvim/init.vim +fi diff --git a/zsh_functions b/zsh_functions index 5666fa1..ff2ba14 100644 --- a/zsh_functions +++ b/zsh_functions @@ -98,4 +98,12 @@ delete-old-archives() { sudo tarsnap -d -f "$archive" fi done + +update-mirrors() { + if [[ $(uname -m) != "x86_64" ]] + then + echo "Not supported on this architecture." + else + sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist" + fi } diff --git a/zshrc b/zshrc index 5421ab9..0ab3ab6 100644 --- a/zshrc +++ b/zshrc @@ -20,7 +20,6 @@ alias sudo='sudo ' alias tasks="ps -u fab" alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg" alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run' -alias update-mirrors='sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"' alias ssh='ssh ' alias ping='ping ' alias aur-update='pacaur -Syu --devel --noconfirm'