Improvements :-) ...
This commit is contained in:
parent
60428a5f01
commit
2e67ecc3cb
6
Brewfile
6
Brewfile
@ -35,6 +35,8 @@ cask "vagrant"
|
|||||||
cask "virtualbox"
|
cask "virtualbox"
|
||||||
# Arduino
|
# Arduino
|
||||||
cask "arduino"
|
cask "arduino"
|
||||||
|
cask "koa11y" # desktop app for asserting websites accessibility
|
||||||
|
cask "osxfuse" # telepresence https://www.telepresence.io/reference/install
|
||||||
|
|
||||||
# Mac app store
|
# Mac app store
|
||||||
mas 'Keynote', id: 409183694
|
mas 'Keynote', id: 409183694
|
||||||
@ -129,3 +131,7 @@ brew "ktlint" # kotlin linter
|
|||||||
brew "cmake" # compiler, was needed for compiling YouCompleteMe, see https://github.com/ycm-core/YouCompleteMe
|
brew "cmake" # compiler, was needed for compiling YouCompleteMe, see https://github.com/ycm-core/YouCompleteMe
|
||||||
brew "zola" # a simple and fast static site generator
|
brew "zola" # a simple and fast static site generator
|
||||||
brew "rustup" # Install Rust
|
brew "rustup" # Install Rust
|
||||||
|
brew "jq" # add jq utility for parsing json
|
||||||
|
brew "octant" # k8s cluster viewer
|
||||||
|
brew "datawire/blackbird/telepresence" # telepresence https://www.telepresence.io/reference/install
|
||||||
|
brew "ansiweather" # https://github.com/fcambus/ansiweather
|
||||||
|
10
dot_ansiweatherrc
Normal file
10
dot_ansiweatherrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
location:Gembloux,BE
|
||||||
|
units:metric
|
||||||
|
wind_text:Vent
|
||||||
|
sunrise_text:Lever du soleil
|
||||||
|
sunset_text:Coucher de soleil
|
||||||
|
greeting_text:Météo de
|
||||||
|
humidity_text:Humidité
|
||||||
|
pressure_text:Pression
|
||||||
|
forecast_text:Prévisions
|
||||||
|
background:\033[35m
|
@ -30,3 +30,5 @@
|
|||||||
pager = diff-so-fancy | less --tabs=4 -RFX
|
pager = diff-so-fancy | less --tabs=4 -RFX
|
||||||
[diff]
|
[diff]
|
||||||
noprefix = true
|
noprefix = true
|
||||||
|
[init]
|
||||||
|
templatedir = ~/.git-templates
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
# Make sure Code directory exists
|
# Make sure Code directory exists
|
||||||
|
|
||||||
|
echo "Hello $(whoami)! Let's get you set up."
|
||||||
|
|
||||||
|
echo "mkdir -p $(HOME)/Code"
|
||||||
mkdir -p ~/Code
|
mkdir -p ~/Code
|
||||||
ln -snf ~/Code/dotfiles/dot_scripts ~/.scripts
|
ln -snf ~/Code/dotfiles/dot_scripts ~/.scripts
|
||||||
chmod +x ~/.scripts/*.sh
|
chmod +x ~/.scripts/*.sh
|
||||||
@ -6,7 +10,7 @@ chmod +x ~/.scripts/*.sh
|
|||||||
# Install missing package (Linux)
|
# Install missing package (Linux)
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Linux)
|
Linux)
|
||||||
echo 'Linux'
|
echo "(Linux) Installing Development Tools"
|
||||||
yum install sudo -y
|
yum install sudo -y
|
||||||
sudo yum groupinstall 'Development Tools' -y
|
sudo yum groupinstall 'Development Tools' -y
|
||||||
sudo yum install git which zip unzip ruby curl file docker gcc make libxcrypt-compat vim-enhanced -y
|
sudo yum install git which zip unzip ruby curl file docker gcc make libxcrypt-compat vim-enhanced -y
|
||||||
@ -15,28 +19,29 @@ esac
|
|||||||
|
|
||||||
# Install HomeBrew
|
# Install HomeBrew
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
echo 'Mac OS X'
|
echo "(Mac OS X) installing homebrew"
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Linux)
|
Linux)
|
||||||
echo 'Linux'
|
echo "(Linux) installing homebrew"
|
||||||
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
|
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
|
||||||
mkdir -p ~/.linuxbrew/bin
|
mkdir -p ~/.linuxbrew/bin
|
||||||
ln -snf ../Homebrew/bin/brew ~/.linuxbrew/bin
|
ln -snf ../Homebrew/bin/brew ~/.linuxbrew/bin
|
||||||
eval $(~/.linuxbrew/bin/brew shellenv)
|
eval "$(~/.linuxbrew/bin/brew shellenv)"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 'Non supported OS'
|
echo 'Homebrew installation aborted : Non supported OS'
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# Prevent `Error: Your Homebrew is outdated. Please run `brew update`.`
|
# Prevent `Error: Your Homebrew is outdated. Please run `brew update`.`
|
||||||
|
echo "Updating Homebrew"
|
||||||
brew update
|
brew update
|
||||||
|
|
||||||
# Create symbolic links
|
# Create symbolic links
|
||||||
|
echo "Creating symbolic links"
|
||||||
ln -snf ~/.local/share/chezmoi/ ~/dotfiles
|
ln -snf ~/.local/share/chezmoi/ ~/dotfiles
|
||||||
ln -snf ~/Code/dotfiles/Brewfile ~/Brewfile
|
ln -snf ~/Code/dotfiles/Brewfile ~/Brewfile
|
||||||
ln -snf ~/Code/dotfiles/Gemfile ~/Gemfile
|
ln -snf ~/Code/dotfiles/Gemfile ~/Gemfile
|
||||||
@ -54,36 +59,44 @@ ln -snf ~/Code/dotfiles/private_dot_ssh/config ~/.ssh/config
|
|||||||
ln -snf ~/Code/dotfiles/requirements.txt ~/requirements.txt
|
ln -snf ~/Code/dotfiles/requirements.txt ~/requirements.txt
|
||||||
ln -snf ~/Code/dotfiles/dot_surfraw.conf ~/.surfraw.conf
|
ln -snf ~/Code/dotfiles/dot_surfraw.conf ~/.surfraw.conf
|
||||||
ln -snf ~/Code/dotfiles/private_dot_3llo/config.sh ~/.3llo_config
|
ln -snf ~/Code/dotfiles/private_dot_3llo/config.sh ~/.3llo_config
|
||||||
|
ln -snf ~/Code/dotfiles/dot_ansiweatherrc ~/.ansiweatherrc
|
||||||
|
|
||||||
# Other symblinks + Install Docker Desktop for Mac
|
# Other symblinks + Install Docker Desktop for Mac
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Darwin)
|
Darwin)
|
||||||
ln -snf ~/.config/Code/User/settings.json "~/Library/Application Support/Code/User/settings.json"
|
echo "(Mac OS X) Adding symbolic links"
|
||||||
ln -snf "~/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "~/Library/Application Support/Code/User/snippets"
|
ln -snf "$HOME/.config/Code/User/settings.json" "$HOME/Library/Application Support/Code/User/settings.json"
|
||||||
ln -snf "~/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" ~/.mackup.cfg
|
ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/Code/User/snippets" "$HOME/Library/Application Support/Code/User/snippets"
|
||||||
|
ln -snf "$HOME/Library/Mobile Documents/com~apple~CloudDocs/Mackup/.mackup.cfg" "$HOME/.mackup.cfg"
|
||||||
|
echo "(Mac OS X) Installing Docker"
|
||||||
~/.scripts/install_docker_for_mac.sh
|
~/.scripts/install_docker_for_mac.sh
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Install dependencies (apps, fonts, ...) with Brew
|
# Install dependencies (apps, fonts, ...) with Brew
|
||||||
|
echo "Brew installing stuff (apps, fonts, ...)"
|
||||||
brew bundle
|
brew bundle
|
||||||
|
|
||||||
# Switch to ZSH
|
# Switch to ZSH
|
||||||
echo "$(which zsh)" >> /etc/shells
|
echo "switching to ZSH"
|
||||||
chsh -s "$(which zsh)"
|
command -v zsh >> /etc/shells
|
||||||
|
chsh -s "$(command -v zsh)"
|
||||||
|
|
||||||
# Use SDKMan to install development tools
|
# Use SDKMan to install development tools
|
||||||
|
echo "Installing SDKMan as development tools manager"
|
||||||
curl -s "https://get.sdkman.io" | bash
|
curl -s "https://get.sdkman.io" | bash
|
||||||
|
|
||||||
|
echo "SDKMan installing development tools"
|
||||||
sdk install java
|
sdk install java
|
||||||
sdk install gradle
|
sdk install gradle
|
||||||
sdk install java 8.0.222-zulu
|
sdk install java 8.0.222-zulu
|
||||||
sdk install kotlin
|
sdk install kotlin
|
||||||
|
echo "SDKMan updating"
|
||||||
sdk selfupdate
|
sdk selfupdate
|
||||||
|
|
||||||
# Install Docker Desktop for Mac
|
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Linux)
|
Linux)
|
||||||
echo 'Install ruby on Linux'
|
echo '(Linux) Installing ruby'
|
||||||
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
|
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
|
||||||
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
|
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
|
||||||
curl -L get.rvm.io | bash -s stable
|
curl -L get.rvm.io | bash -s stable
|
||||||
@ -95,10 +108,12 @@ case "$(uname -s)" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Install bundler for managing ruby dependencies and Gemfile
|
# Install bundler for managing ruby dependencies and Gemfile
|
||||||
|
echo "Installing bundler for managing ruby dependencies and Gemfile"
|
||||||
sudo gem install bundler
|
sudo gem install bundler
|
||||||
bundle install
|
bundle install
|
||||||
|
|
||||||
# Install Oh My Zsh and some cool dependencies
|
# Install Oh My Zsh and some cool dependencies
|
||||||
|
echo "Installing Oh My Zsh + customizing themes and plugins"
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
||||||
git clone https://github.com/AlexisBRENON/oh-my-zsh-reminder ~/.oh-my-zsh/custom/plugins/reminder
|
git clone https://github.com/AlexisBRENON/oh-my-zsh-reminder ~/.oh-my-zsh/custom/plugins/reminder
|
||||||
@ -107,43 +122,51 @@ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/p
|
|||||||
ln -snf ~/Code/dotfiles/dot_zshrc ~/.zshrc
|
ln -snf ~/Code/dotfiles/dot_zshrc ~/.zshrc
|
||||||
ln -snf ~/Code/dotfiles/dot_zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh
|
ln -snf ~/Code/dotfiles/dot_zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh
|
||||||
|
|
||||||
|
echo "Installing Vundle + VIM Plugins"
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||||
vim +PluginInstall +qall
|
vim +PluginInstall +qall
|
||||||
cd ~/.vim/bundle/YouCompleteMe
|
#https://github.com/ycm-core/YouCompleteMe/blob/master/README.md#installation
|
||||||
./install.py --clang-completer
|
cd "$HOME/.vim/bundle/YouCompleteMe" || exit
|
||||||
cd ~/
|
./install.py --all
|
||||||
|
cd "$HOME" || exit
|
||||||
git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim
|
git clone https://github.com/dbeniamine/cheat.sh-vim.git ~/.vim/cheat.sh-vim
|
||||||
|
|
||||||
# Install no-more-secrets
|
# Install no-more-secrets
|
||||||
|
echo "Installing no-more-secrets (for fun)"
|
||||||
git clone https://github.com/bartobri/no-more-secrets.git ~/Code/no-more-secrets
|
git clone https://github.com/bartobri/no-more-secrets.git ~/Code/no-more-secrets
|
||||||
cd ~/Code/no-more-secrets
|
cd "$HOME/Code/no-more-secrets" || exit
|
||||||
make nms sneakers
|
make nms sneakers
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ~/
|
cd "$HOME" || exit
|
||||||
|
|
||||||
# OSX Defaults
|
# OSX Defaults
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Darwin)
|
Darwin)
|
||||||
|
echo "(Mac OS X) Loading preferences"
|
||||||
sudo sh .macos
|
sudo sh .macos
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Customize /etc/hosts
|
# Customize /etc/hosts
|
||||||
|
echo "Overriding /etc/hosts"
|
||||||
curl https://someonewhocares.org/hosts/hosts -o /etc/hosts
|
curl https://someonewhocares.org/hosts/hosts -o /etc/hosts
|
||||||
|
|
||||||
# Install pip and pipenv
|
# Install pip and pipenv
|
||||||
|
echo "Installing pip and pipenv"
|
||||||
sudo easy_install pip
|
sudo easy_install pip
|
||||||
sudo pip install --upgrade pip
|
sudo pip install --upgrade pip
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||||
sudo python3 get-pip.py
|
sudo python3 get-pip.py
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Darwin)
|
Darwin)
|
||||||
|
echo "(Mac OS X) Updating PATH for loading pip user installed packages"
|
||||||
ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3
|
ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3
|
||||||
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin"
|
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
echo "Upgrading pip"
|
||||||
sudo pip install --upgrade pip
|
sudo pip install --upgrade pip
|
||||||
|
echo "Pip installing stuff"
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
# was used for some slack cli in python... https://pypi.org/project/slack-cli/
|
# was used for some slack cli in python... https://pypi.org/project/slack-cli/
|
||||||
@ -153,25 +176,32 @@ pip install -r requirements.txt
|
|||||||
# Install baton (CLI to manage Spotify playback) https://github.com/joshuathompson/baton
|
# Install baton (CLI to manage Spotify playback) https://github.com/joshuathompson/baton
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Darwin)
|
Darwin)
|
||||||
echo 'Mac OS X'
|
echo '(Mac OS X) Installing baton (spotify CLI)'
|
||||||
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-darwin-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
|
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-darwin-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Linux)
|
Linux)
|
||||||
echo 'Linux'
|
echo '(Linux) Installing baton (spotify CLI)'
|
||||||
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-linux-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
|
curl -sSL https://github.com/joshuathompson/baton/releases/download/0.1.7/baton-0.1.7-linux-amd64 -o /usr/local/bin/baton && chmod +x /usr/local/bin/baton
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 'Non supported OS'
|
echo 'Non supported OS : Installation aborted for baton (spotify CLI)'
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Use rustup to install the Rust compiler (rustc) and the Rust package manager (cargo).
|
# Use rustup to install the Rust compiler (rustc) and the Rust package manager (cargo).
|
||||||
|
echo "Installing Rust compiler and package manager"
|
||||||
rustup-init -y
|
rustup-init -y
|
||||||
|
rustup component add rustfmt
|
||||||
|
# Install pa11y tool for local webpage accessibility analysis
|
||||||
|
echo "Installing pa11y tool for local webpage accessibility analysis"
|
||||||
|
npm install -g pa11y
|
||||||
|
|
||||||
# Upgrade
|
# Upgrade
|
||||||
|
echo "Upgrading apps"
|
||||||
~/.scripts/upgrade.sh
|
~/.scripts/upgrade.sh
|
||||||
|
|
||||||
# Reload
|
# Reload
|
||||||
|
echo "Reloading config"
|
||||||
~/.scripts/reload.sh
|
~/.scripts/reload.sh
|
||||||
|
2
dot_scripts/installed.sh
Normal file
2
dot_scripts/installed.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
npm list -g --depth 0
|
@ -1 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
vim --version | head -1
|
||||||
rustc --version
|
rustc --version
|
||||||
|
npm --version
|
||||||
|
@ -84,9 +84,12 @@ let g:terraform_fmt_on_save=1
|
|||||||
" dense-analysis/ale options
|
" dense-analysis/ale options
|
||||||
let g:ale_history_log_output = 1
|
let g:ale_history_log_output = 1
|
||||||
let g:ale_use_global_executables = 1
|
let g:ale_use_global_executables = 1
|
||||||
|
let g:ale_fix_on_save = 1
|
||||||
|
let g:ale_completion_enabled = 1
|
||||||
let g:ale_fixers = {
|
let g:ale_fixers = {
|
||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\ 'python': ['black'],
|
\ 'python': ['black'],
|
||||||
|
\ 'rust': ['rustfmt'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
" Enable syntax highlighting
|
" Enable syntax highlighting
|
||||||
|
@ -52,7 +52,7 @@ alias mailpro="gmail"
|
|||||||
|
|
||||||
# Viewing files
|
# Viewing files
|
||||||
alias cat='bat --style=plain --color "always"'
|
alias cat='bat --style=plain --color "always"'
|
||||||
alias preview="fzf --preview 'bat --color \"always\" --style=plain {}'"
|
alias preview="fzf --preview 'bat --color \"always\" --style=plain {}' --cycle "
|
||||||
alias markdown='pandoc README.md | lynx -stdin -dump'
|
alias markdown='pandoc README.md | lynx -stdin -dump'
|
||||||
|
|
||||||
# To do / Done
|
# To do / Done
|
||||||
@ -104,6 +104,10 @@ alias monitoring='glances'
|
|||||||
alias ':q'='exit'
|
alias ':q'='exit'
|
||||||
alias irc='weechat'
|
alias irc='weechat'
|
||||||
alias trello='3llo'
|
alias trello='3llo'
|
||||||
|
alias mytracks='music me saved tracks'
|
||||||
|
alias unix='curl -L http://git.io/unix'
|
||||||
|
alias coffee="curl -L http://git.io/coffee"
|
||||||
|
alias hotcoffee="curl -sL git.io/hotcoffee | sh"
|
||||||
|
|
||||||
# Show/hide hidden files in Finder
|
# Show/hide hidden files in Finder
|
||||||
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||||
|
@ -218,3 +218,9 @@ function whichfunc() {
|
|||||||
whence -v $1
|
whence -v $1
|
||||||
type -a $1
|
type -a $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# git shortcuts
|
||||||
|
function gcrb {
|
||||||
|
branch=$1
|
||||||
|
git checkout -b $branch origin/$branch
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user