Giter VIP home page Giter VIP logo

dotfiles's Introduction

My personal dotfiles

I use this repo to keeping my personal customization files that I use to personalize my terminal experience.

I got this idea from this video https://www.youtube.com/watch?v=AK2JE2YsKto, after that, I got a lot of more customizations.

This can be applied on Linux, Mac or Windows (WSL).

Install script

This script .install.sh can be used do the initial setup the tools (zsh, oh-my-zsh, powerlevel10k theme, oh-my-zsh plugins, brew packages and yadm), and then applies the YADM at the end, which gets the current customizations on your home directory ~/.

You can run the script directly with the following command:

curl -s -L https://raw.githubusercontent.com/fredcido/dotfiles/main/.install.sh | bash

In the end, run the command to define ZSH as the default shell:

chsh -s $(which zsh)

Prompt

This is how your prompt will look like after cloning the settings with YADM.

  • Home directory

screenshot-01.png

  • Some project with git

screenshot-02.png

To customize the prompt, run p10k configure or edit ~/.p10k.zsh.

Getting the DOTFILEs, only

If you only want to get the files without installing anything new, just use YADM in your home directory.

cd ~
yadm clone [email protected]:fredcido/dotfiles.git

Brewfile

There is a way to easy install packages for both OSX and Linux using brew and brewfile, it's described on this link https://gist.github.com/ChristopherA/a579274536aab36ea9966f301ff14f3f

Keep brewfile updated

Run this command to update the brew file based on what you are running.

brew bundle dump --file=.brewfile --force

Install all the packages listed on the brewfile

 brew bundle install --file=.brewfile

Font

To enjoy this setting at its utmost performance, install MesloLGS NF Font on your OS, and select MesloLGS NF on your Terminal and Code Editor.

The font is already installed with brew for OSX. This install step is necessary only for Windows/WSL/Linux More info about MesloLGS font can be found on the repo: https://github.com/romkatv/powerlevel10k#manual-font-installation

Windows

Manual Install

Follow instructions from <https://github.com/romkatv/powerlevel10k#manual-font-installation.

Windows with powershell

choco install nerd-fonts-meslo

MacOS with brew

brew install --cask font-meslo-lg-nerd-font

Configure the Font

Windows Terminal

On the terminal settings, click on the terminal you want to change the font (powershell/ubuntu/git bash, etc), go to appearance, then Font face and select MesloLGM Nerd Font.

screenshot-03.png

VSCode

In the VSCode settings.json apply these settings to enable MesloLGS NF on the integrated terminal.

    "terminal.integrated.fontFamily": "MesloLGS NF",

screenshot-04.png

Windows/WSL Additional Settings

It is possible to enforce some resource limitations on the WSL environment.

1 - Turn off all WSL instances such as docker-desktop

wsl --shutdown

2 - Create/Edit the .wslconfig file with this content:

notepad "%HOMEPATH%/.wslconfig"
[wsl2]
memory=4GB   # Limits VM memory in WSL 2 up to 4GB
processors=4 # Makes the WSL 2 VM use two virtual processors

More settings can be seen at the: Official Documentation.

dotfiles's People

Contributors

zenatuz avatar fredcido avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.