Skip to content

MarioAlexis/dotfiles

Repository files navigation

Table Of Content

Terminal Setup

Download Font

The font recommended for p10k is MesloLGS NF.

Download & install the font in here.

NOTE: Make sure to set the correct font in your terminal or VSCode

Install zsh

Intall on Linux
sudo apt install zsh

Make zsh default shell

chsh -s $(which zsh)

Install on MacOs Install Homebrew ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ```

Add brew into user PATH

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Install zsh

brew install zsh

Set zsh as your default shell.

  • For m1 macs:
      chsh -s /opt/homebrew/bin/zsh

Verify installation

zsh --version

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install powerlevel10k

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Download dotfiles

bash -c "$(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/MarioAlexis/dotfile/master/install.sh)"

Re-configure p10k

p10k configure

PowerShell

Install oh-my-posh

scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json

Restart your terminal.

Update your $PROFILE.

notepad $PROFILE

Add following line.

oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/powerlevel10k_rainbow.omp.json" | Invoke-Expression

Reload your profile

. $PROFILE

Useful Oneliner

Vim

echo "color desert|set nu|set et|set ts=4|set nowrap|set hls|set is|set pt=<F2>|inoremap jk <esc>" > ~/.vimrc

Alias

echo -n "alias ll='ls -hal'\nalias ..='cd ..'" >> ~/.bashrc && source ~/.bashrc

Install PYENV

Install pyenv

curl https://pyenv.run | bash

The installation creates $HOME/.pyenv directory which is then detected by the doftiles install script to setup corresponding env vars.

List all available Python version

pyenv install --list

NOTE: At this point, dotfiles install script has been already executed. Install a specific Python version

pyenv install 3.8

Ensure to set the correct Python version for your project directory

pyenv local 3.8

Create your Python virtual env using pyenv

pyenv virtualenv [python_version] [virtualenv_name]

pyenv virtualenv 3.8 myvenv

Start using Python virtualenv in your project

pyenv local [virtualenv_name]

pyenv local myvenv

Use pipenv with pyenv

# Confirm python version
which python
pyenv which python

# Install pipenv
pip install pipenv

# Allow pipenv to use pyenv
export PIPENV_PYTHON="$PYENV_ROOT/shims/python"

Install NVM (Node Version Manager)

Run the install script

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

List available node version

nvm ls-remote

Install latest LTS version

nvm install --lts

Verify installation

node --version
npm --version

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published