šŸ„· chachi-shell

My own shell configuration, along with some random scripts that I use in my day to day work.

All configuration files are placed in p2kmgcl/chachi-shell.

The first steps I follow when installing a new system, is cleaning up unnecessary applications, and also adding some essential ones (proper web browser, text editor, terminal emulator, etc.):

  1. Cleanup your system.
  2. Choose a nice wallpaper, theme and font.
  3. Configure browser and terminal emulator.
  4. Prepare some text editors I am using three of them right now:

Development environment

Setup

  1. Set CHACHI_PATH environment variable.

  2. Install openssh.

  3. Add SSH key.

  4. Install: curl fzf git jq nano ripgrep tree

  5. Install šŸ¦‰ tmux.

  6. Install Autojump.

  7. Clone p2kmgcl/chachi-shell in $CHACHI_PATH

  8. Link some configuration files:

    ln -s "${CHACHI_PATH}/home/.bin" "${HOME}/.bin"
    ln -s "${CHACHI_PATH}/home/.config" "${HOME}/.config"
    ln -s "${CHACHI_PATH}/home/.bashrc" "${HOME}/.bashrc"
    ln -s "${CHACHI_PATH}/home/.bash_profile" "${HOME}/.bash_profile"
    ln -s "${CHACHI_PATH}/home/.editorconfig" "${HOME}/.editorconfig"
    ln -s "${CHACHI_PATH}/home/.git-do-open-pull-request" "${HOME}/.git-do-open-pull-request"
    ln -s "${CHACHI_PATH}/home/.gitconfig" "${HOME}/.gitconfig"
    ln -s "${CHACHI_PATH}/home/.gitignore-global" "${HOME}/.gitignore-global"
    ln -s "${CHACHI_PATH}/home/.ideavimrc" "${HOME}/.ideavimrc"
    ln -s "${CHACHI_PATH}/home/.zshrc" "${HOME}/.Xresources"
    ln -s "${CHACHI_PATH}/home/.zshrc" "${HOME}/.zshrc"
    
Awesome apps
  • šŸŽ© Seniore.
  • šŸ‘‹ Holi.
  • mdp: CLI written in Python to run text based presentations in terminal.
  • marp: Markdown presentation ecosystem, including editor extensions and PDF export.
Programming languages
ZSH
  1. Install zsh
  2. git clone https://github.com/ohmyzsh/ohmyzsh ~/.oh-my-zsh
  3. git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
  4. Set ZSH as default interpreter (chsh --shell $(which zsh) $(whoami)).
Docker
  1. Install Docker.
  2. Install Docker Compose.
  3. Add user to docker group (sudo usermod -a -G docker $(whoami)).
Random notes
  • docker exec [CONTAINER] --it [COMMAND]
  • mysqldump -h [HOST] -u [USER] -p[PASSWORD] [DATABASE_NAME] > dump.sql
  • docker cp [CONTAINER]:[CONTAINER_PATH] [HOST_PATH]

Nice fonts