项目作者: rmspacefish

项目描述 :
Python script to set up aliases in a new Unix environment or for MinGW and git on Windows
高级语言: Python
项目地址: git://github.com/rmspacefish/cmdline-configurator.git
创建时间: 2021-04-01T22:11:19Z
项目社区:https://github.com/rmspacefish/cmdline-configurator

开源协议:

下载


System Configurator Utility

This is a personal README which includes steps and utilities to set up a convenient development
environment on Windows and Linux. It includes a Python script to set up the command line and
development environment in a new Unix environment or for MinGW and git on Windows.

Windows

  1. Install Sublime Text
  2. Install MSYS2
  3. Install Windows Terminal
  4. Install git for Windows
  5. Install VS Code
  6. Install Ninja
  7. Install WSL2

PowerShell

  1. Allow executing PowerShell scripts

    1. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
  2. You can create a Microsoft.Powershell_profile.ps1 file in the MicrosoftPowerShell
    folder which will be loaded when opening PowerShell. An example file is provided in the
    Windows/PowerShell folder

  3. It is recommended to install posh-git for better
    git integration

Ubuntu

It is recommended to use the provided ansible notebook.
Install ansible first.

Two playbooks are provided: playbook-full and playbook-min.

Run minimal playbook:

  1. cd unix/ansible
  2. ansible-playbook -i inventory.ini playbook-min.yml -K

Generating and signing commits with GPG

Follow this guide.

After generating a key, the secret key can be exported with the following command

  1. gpg --output private.pgp --armor --export-secret-key <username/mail or key ID>

And then import this file with gpa or Kleopatra.

You can export the public key with the following command

  1. gpg --output public.pgp --armor --export <username/mail or key ID>

This key can be uploaded to Github, Gitlab to allow verification of commits

Dual-Boot Configuration

You can disable the grub timeout by opening the /etc/default/grub file and setting
GRUB_TIMEOUT to -1.

In dual-boot configuration, Linux might mess with Windows times or vice-versa. You can fix this
by running following command

  1. timedatectl set-local-rtc 1 --adjust-system-clock

Neovim Configuration

Neovim configuration Repo