Merge branch 'master' of github.com:Faerbit/.dotfiles

This commit is contained in:
Faerbit 2015-11-17 12:24:24 +01:00
commit a9910ed093
4 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
all: symlinks setup-vim
all: symlinks
symlinks:
chmod +x make_symlinks.sh

View File

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

View File

@ -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
}

1
zshrc
View File

@ -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'