+
Skip to content

alexhyang/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Dotfiles

This document contains notes about my personal configuration of development environment on Debian-based Linux distributions. For configuration on Linux on Android, checkout the android branch.

Content:

Machine setups

  1. install essential packages

    sudo apt update; sudo apt upgrade; \
    sudo apt install curl git zsh vim tmux; \
    apt list --installed curl git zsh vim tmux

    zsh configuration manager: OhMyZsh

    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  2. establish GitHub connection

    1. generate ssh keys
      ssh-keygen -t ed25519 -C "<username>@gmail.com"; \
      eval "$(ssh-agent -s)"; \
      ssh-add ~/.ssh/id_ed25519; \
      cat ~/.ssh/id_ed25519.pub
    2. add public key to GitHub account
    3. verify GitHub connection using ssh
      ssh -T git@github.com
  3. setup dotfiles on local machine

    git clone git@github.com:alexhyang/dotfiles.git ~/.dotfiles/; \
    source ~/.dotfiles/bootstrap.sh
  4. install Node.js

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash; \
    omz reload
    nvm install --lts; nvm ls

Explanations

Dotfiles

  • some tools to be configured through dotfiles:

    • shell -- ~/.bashrc, ~/.bash_profile, ~/.zshrc
    • git -- ~/.gitconfig
    • vim -- ~/.vimrc
    • ssh -- ~/.ssh/config
    • tmux -- ~/.tmux.conf
    • aliases, functions, local environment variables -- ~/.aliases, ~/.bash_aliases, ~/.shell_utils, ~/.local_env
  • use "redirect" to source files in the dotfiles repo, sensitive information such as customized directory and API keys will be configured locally

    • symlink, dotfile, etc.
  • files created by OS:

    • Ubuntu 22.04 ~/.bashrc, ~/.bash_logout, ~/.profile, ~/.motd_shown
    • Debian ~/.bashrc, ~/.bash_logout, ~/.profile

Detailed list of command line tools see Command_Line_Tools-ref.

Plugins

References

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载