Skip to content

Instantly share code, notes, and snippets.

@duard
Last active May 31, 2020 13:35
Show Gist options
  • Save duard/2c7a9561f33b3d6f42992af8abeadc3b to your computer and use it in GitHub Desktop.
Save duard/2c7a9561f33b3d6f42992af8abeadc3b to your computer and use it in GitHub Desktop.
Ubuntu/Debian/Pop configuration postinstall
Update and Upgrade
```code
sudo apt-get update
sudo apt upgrade
```
Install everything
```code
sudo apt install -y git powerline fonts-powerline zsh build-essential git g++ gnutls-bin valac intltool software-properties-common
```
Install Docker
```code
sudo apt install docker.io;
sudo systemctl enable --now docker;
sudo usermod -aG docker $USER;
sudo usermod -aG docker ${USER};
sudo chmod 666 /var/run/docker.sock;
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose;sudo chmod +x /usr/local/bin/docker-compose;docker-compose --version;
```
```code
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
node --version
```
instalar o [zplugin](https://github.com/zdharma/zinit)
```code
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)"
```
Configure e adicione ao ~/.zshrc
```code
export ZSH="/home/duard/.oh-my-zsh"
ZSH_THEME="robbyrussell"
ZSH_THEME="dogenpunk"
ZSH_THEME="dpoggi"
ZSH_THEME="spaceship"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export SIG_USER=duard
export PATH=~/.npm-global/bin:$PATH
export NODE_ENV=development
export PATH=$PATH:/usr/local/bin/aws
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORMTHEME=qt5ct
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing DHARMA Initiative Plugin Manager (zdharma/zinit)…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f" || \
print -P "%F{160}▓▒░ The clone has failed.%f"
fi
source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
### End of Zinit installer's chunk
zplugin light zdharma/fast-syntax-highlighting
zplugin light zsh-users/zsh-autosuggestions
zplugin light zsh-users/zsh-history-substring-search
zplugin light zsh-users/zsh-completions
zplugin light buonomo/yarn-completion
function termtitle() { PS1="${PS1/\\u@\\h: \\w/$@}"; }
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%~\a"}
;;
esac
```
Rode para configurar o npm
```code
mkdir ~/.npm-global;
npm config set prefix '~/.npm-global';
export PATH=~/.npm-global/bin:$PATH;
source ~/.zshrc;
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment