Code Monkey home page Code Monkey logo

dotfiles-1's Introduction

Dotfiles for Ubuntu 21.10

My preferred starting configuration. Currently using Ubuntu 21.10 Impish Indri + Pop_OS! Shell for tiling.

The installation script (scripts/install.sh) will install a suggested serving of programs and applications using scripts in the scripts/programs/ directory. Please verify that you want these before running the script.

Add or delete programs in scripts/install.sh and scripts/programs/ to modify your installation.

Usage

After installing your fresh OS, create any SSH keys you need to access GitHub. See copy-able commands for doing this below.

If not generating new keys, place the ones you need in .ssh/. Remember to run ssh-add as well as chmod 600 <key_name>. Then clone this repository:

git clone [email protected]:victoriadrake/dotfiles.git

# Or use HTTPS
git clone https://github.com/victoriadrake/dotfiles.git

You may optionally like to pass the --depth argument to clone only a few of the most recent commits.

Close Firefox if it's open, then run the installation script. (Read it first so you know what it does!)

cd dotfiles/scripts/
./install.sh

To install the Pop_OS! Shell for window tiling, see Installation in their repo.

Random Helpful Stuff (TM)

Clone all your remote repositories

Given a list of repository URLs, gh-repos.txt, run:

xargs -n1 git clone < gh-repos.txt

Use the firewood Bash alias (see .bashrc) to collect remote branches.

See How to write Bash one-liners for cloning and managing GitHub and GitLab repositories for more.

Terminal theme

There are plenty of themes for Gnome terminal at Mayccoll/Gogh.

Print a 256-color test pattern in your terminal:

for i in {0..255} ; do
    printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
    if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
        printf "\n";
    fi
done

Saving and loading configuration settings

Where SETTINGS_BACKUP is wherever you backed up/want to back up your settings (aptly named, isn't it?), load settings.dconf with:

dconf load /org/gnome/ < $(SETTINGS_BACKUP)/.config/dconf/settings.dconf

Back up new settings with:

dconf dump /org/gnome/ > $(SETTINGS_BACKUP)/.config/dconf/settings.dconf

Run man dconf on your machine for more.

Set up SSH Keys

Commands for setting up a new SSH key.

  1. Generate the key:

    ssh-keygen -t ed25519
  2. Add it to the ssh-agent:

    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_ed25519
  3. Set appropriate permissions:

    chmod 600 ~/.ssh/id_ed25519
  4. Show the public key so you can copy it to the service, e.g. GitHub:

    cat ~/.ssh/id_ed25519.pub

Your personal CLI tool Makefile

See the Makefile in this repository for some helpful command aliases. Read about self-documenting Makefiles on my blog.

dotfiles-1's People

Contributors

victoriadrake avatar

Watchers

James Cloos 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.