Skip to content

Instantly share code, notes, and snippets.

@13i
Last active August 8, 2022 20:06
Show Gist options
  • Save 13i/0314c16c25842ec8eef055b93609c26f to your computer and use it in GitHub Desktop.
Save 13i/0314c16c25842ec8eef055b93609c26f to your computer and use it in GitHub Desktop.
My Env
#!/bin/bash
sudo apt update
sudo apt install \
zip \
wget \
git \
nano \
zsh \
fzf \
exa
// Génération de la clié SSH
ssh-keygen -t rsa -f ~/.ssh/id_rsa -C pierre@13i -b 4096
// Création du répertoire accueillant les sources git
mkdir -p ~/git
// nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install node
// npm modules
npm i pnpm
// pnpm modules
pnpm add -g \
yarn \
grunt-cli \
gulp-cli
// Spack
git clone -c feature.manyFiles=true https://github.com/spack/spack.git
cd spack
. share/spack/setup-env.sh
// Spack packages
spack install gh
// ZNAP
git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git ~/git/zsh-snap
source ~/git/szsh-snap/install.zsh
// A
cat << EOF >> .zshrc
# [START] ZNAP
[[ -f ~/git/zsh-snap/znap.zsh ]] ||
git clone --depth 1 -- \
https://github.com/marlonrichert/zsh-snap.git ~/git/zsh-snap
source ~/git/zsh-snap/znap.zsh
znap prompt sindresorhus/pure
znap source marlonrichert/zsh-autocomplete
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-syntax-highlighting
znap eval iterm2 'curl -fsSL https://iterm2.com/shell_integration/zsh'
znap function _pyenv pyenv 'eval "$( pyenv init - --no-rehash )"'
compctl -K _pyenv pyenv
# [END] ZNAP
# [START] EXA
if [ -x "$(command -v exa)" ]; then
alias ls="exa"
alias la="exa --long --all --group"
fi
# [END] EXA
EOF
cd zsh-autocomplete source
zsh-autocomplete.plugin.zsh
git config --global user.name "username"
git config --global user.email "email address"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment