From fc6692c48f7ffc7b2656f1ad0ef80cd5ccb71591 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 17 Nov 2015 12:10:47 +0100 Subject: [PATCH 1/3] Adding symlink for neovim. --- make_symlinks.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 From 20e0b1649abd15ce9cc7b8c3f84d56ecc2f4ae64 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 17 Nov 2015 12:11:01 +0100 Subject: [PATCH 2/3] Removing setup-vim as default target. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 713266212f5b9cb9682847c5d3c000f97f7fc5da Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 17 Nov 2015 12:20:14 +0100 Subject: [PATCH 3/3] Improved update-mirrors. Do not execute on non x86_64. --- zsh_functions | 9 +++++++++ zshrc | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/zsh_functions b/zsh_functions index bab6e2a..8d7e0a4 100644 --- a/zsh_functions +++ b/zsh_functions @@ -79,3 +79,12 @@ pacman_disowned(){ virtual_env_prompt() { REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) } } + +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 bc2be08..e8e6b59 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'