Giter Site home page Giter Site logo

typecraft-dots's Introduction

Typecraft Dotfiles

This repository consists of all the configuration that we went through in all of our video series:

  1. NeoVim For Newbies
  2. Linux For Newbies

Getting Started

In order to make this configuration yours, clone this repository into your home directory.

git clone https://github.com/typecraft-dev/dotfiles.git

Once the cone is completed, the file structure should look something like this:

./dotfiles
├── README.md
├── install.sh
├── nvim
│   ├── init.lua
│   ├── lazy-lock.json
│   └── lua
│       ├── plugins
│       ├── plugins.lua
│       └── vim-options.lua
└── starship.toml

Starship Prompt

Start by installing the starship binary via package manager or from git. Put it in $PATH:

curl -sS https://starship.rs/install.sh | sh

Finish by adding the following to .zshrc:

eval $(starship init zsh)

Starship uses variables to help it point to custom directories. If you wish to change the config directory for starship, you can set the starship environment variable.

export STARSHIP_CONFIG="$HOME/.config/starship.toml"

Starship has tons of configuration options for customizing the prompt. Make sure to take a look at the documentation for it here.

NeoVim

Coming soon...

Install Script

Now all that is left is to symlink everything into place. The script install.sh will symlink all the files into the respective locations. You can see what the install script does, here:

#! /bin/bash
create_symlinks() {
    # Get the directory in which this script lives.
    script_dir=$(dirname "$(readlink -f "$0")")

    # Get a list of all files in this directory that start with a dot.
    files=$(find -maxdepth 1 -type f -name ".*")

    # Create a symbolic link to each file in the home directory.
    for file in $files; do
        name=$(basename $file)
        echo "Creating symlink to $name in home directory."
        rm -rf ~/$name
        ln -s $script_dir/$name ~/$name
    done

    if [ ! -d ~/.config/nvim ]
    then
      mkdir -p ~/.config/
      ln -s $script_dir/nvim ~/.config/
    fi

}
create_symlinks

typecraft-dots's People

Contributors

cpow avatar andrew-m-holmes avatar koushik-ms avatar hutgrabber 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.