Skip to content

Instantly share code, notes, and snippets.

@danielschmitz
Last active February 28, 2020 16:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielschmitz/f92123ef59745883f0af9b7ab4488f86 to your computer and use it in GitHub Desktop.
Save danielschmitz/f92123ef59745883f0af9b7ab4488f86 to your computer and use it in GitHub Desktop.
Ubuntu Com Firulas

Instalação

Pós Instalação

  • Vá em Drivers Adicionar e instale os drivers de video
  • executar no terminal (ctrl alt t)
sudo apt update
sudo apt upgrade
sudo apt install ubuntu-restricted-extras unity-tweak-tool git curl xclip -y

Configurar o Git

git config --global user.name "Nome"
git config --global user.email "Email"
git config --global push.default simple
git config credential.helper store

Gerar Chaves SSh

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
xclip -sel clip < ~/.ssh/id_rsa.pub

Adicione na sua conta GitHub

Tema Flat

sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install flatabulous-theme

Icones

sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install ultra-flat-icons
  • Usar o unity tweak para alterar o tema

Terminal

sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install git fish
chsh -s `which fish`

Oh my fish com o tema agnoster

curl -L https://get.oh-my.fish | fish
no fish, rodar: omf install agnoster

Fontes para o tema agnoster

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
fc-cache -vf:
relogar
configure a fonte para ubunto mono powerline regular 14

Exemplo

Visual Studio Code

Pode-se usar este arqvuivo de configuração:

{
    "editor.fontFamily": "Ubuntu Mono",
    "editor.fontSize": 20,
    "terminal.integrated.fontSize": 18,
    "terminal.integrated.fontFamily": "Source Code Pro for Powerline",
    "editor.wordWrap": "on",
    "editor.wordWrapColumn": 20,
    "eslint.autoFixOnSave": true,
    "eslint.validate": [
        {
            "language": "vue",
            "autoFix": true
        },
        {
            "language": "html",
            "autoFix": true
        }
    ],
    "files.exclude": {
        "**/.git": true,
        "**/.DS_Store": true,
        "**/*.js": {
            "when": "$(basename).ts"
        },
        "**/*.js.map": true,
        // ionic trunk
        "platforms": true,
        "hooks": true,
        "plugins": true,
        "res": true
        //"node_modules":true
    },
    "git.confirmSync": false,
    "files.associations": {
        "*.vue": "html"
    },
    "workbench.iconTheme": "vs-seti",
    "workbench.colorTheme": "One Dark Pro",
    "window.zoomLevel": 0,
    "git.enableSmartCommit": true,
}
    

Node

Instalar o nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

reiniciar o terminal. Para instalar a versão 8, faça

npm install 8 

Para que o fish reconheça o node:

nano ~/.config/fish/conf.d/omf.fish`

Adicionar: set -g -x PATH ~/.nvm/versions/node/v9.5.0/bin/ $PATH no final da arquivo