diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-11-12 17:04:51 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-11-12 17:04:51 +0100 |
| commit | a06614e72ffc6b8c8fe6741f4546756ee660d4d6 (patch) | |
| tree | 2d3391f12169a7154bf6085a038832fcef78949b /install | |
| parent | 4af84af3b020e9931b456c71a74d88944119d077 (diff) | |
| download | dotfiles-a06614e72ffc6b8c8fe6741f4546756ee660d4d6.tar.gz dotfiles-a06614e72ffc6b8c8fe6741f4546756ee660d4d6.tar.bz2 dotfiles-a06614e72ffc6b8c8fe6741f4546756ee660d4d6.zip | |
Updated for macos
Diffstat (limited to 'install')
| -rwxr-xr-x | install | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -27,9 +27,12 @@ mkdir -pv "$XDG_CONFIG_HOME" mkdir -pv "$XDG_DATA_HOME" mkdir -pv "$XDG_CACHE_HOME" # xmonad uses ~/.xmonad if those directories don't already exists -mkdir -pv "$XMONAD_CONFIG_HOME" -mkdir -pv "$XMONAD_DATA_HOME" -mkdir -pv "$XMONAD_CACHE_HOME" +if [ $(uname) = Linux ] +then + mkdir -pv "$XMONAD_CONFIG_HOME" + mkdir -pv "$XMONAD_DATA_HOME" + mkdir -pv "$XMONAD_CACHE_HOME" +fi echo '---------------------------- CONFIG FILE LINKS ---------------------------' @@ -71,6 +74,11 @@ PLUGURL='https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' [ ! -f "$PLUGFILE" ] && curl -fLo "$PLUGFILE" --create-dirs "$PLUGURL" vim -c "PlugInstall" -c "qa" +PACKERDIR="$XDG_DATA_HOME/nvim/site/pack/packer/start/packer.nvim" +PACKERURL='https://github.com/wbthomason/packer.nvim' +[ ! -d "$PACKERDIR" ] && git clone --depth 1 "$PACKERURL" "$PACKERDIR" +vim -c "PackerInstall" -c "qa" + ############################################################################### # zsh pluggins ############################################################################### @@ -92,6 +100,12 @@ parallel_start update_zsh_plugin 'https://github.com/zsh-users/zsh-syntax-highli parallel_start update_zsh_plugin 'https://github.com/MichaelAquilina/zsh-you-should-use' parallel_wait +[ $(uname) = Darwin ] && exit + +############################################################################### +# Linux specific +############################################################################### + ############################################################################### # crontab ############################################################################### @@ -101,14 +115,14 @@ echo '---------------------------- INSTALL CRONTAB ----------------------------- if [ "$(cat /etc/hostname)" = 'charleslaptopcarbon' ] then cat crontab/user.crontab crontab/laptop.crontab | crontab - -else +elif [ "$(cat /etc/hostname)" = 'cacharle-main' ] crontab crontab/user.crontab fi echo 'INFO: Run this script as root if you want to install the root contab' ############################################################################### -# dictionaties +# dictionaries ############################################################################### echo '---------------------------- INSTALL DICTIONARY --------------------------' |
