您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

1.8 KiB

server-dots

This repository acts as a minimal set of dotfiles that require (hopefully) no installation needs/dependencies to maximize portability across servers that I work on with and without administrative rights. Also should work on all linux distributions. Tested on Ubuntu, RHEL7, RHEL8, Centos7, Arch Linux.

Install

Prerequisites:

  • git
  • make

Clone

~$ git clone https://git.mehalter.com/mehalter/server-dots.git
~$ cd server-dots

Install

Initial set up to automate the whole set up process except tmux which requires manual choice. (NOTE: This should only be run the first time as fzf complains if it already exists, use specific application targets to do updates)

~$ make install

(Log out/log in needed for all changes to take effect)

Bash

Set up bash configuration and aliases

~$ make bash

(Log out/log in needed for all changes to take effect)

Starship Prompt

Set up starship prompt for shells

~$ make starship

FZF

Set up fzf for command line fuzzy finding (git is needed for this install)

~$ make fzf

Tmux

Set up tmux configuration. Centos/RHEL repositories have up to tmux-1.8, so I have included a configuration file for both <2.0 and ≥2.0. Change tmuxN to either tmux1 (<2.0) or tmux3 (≥2.0)

~$ make tmuxN

Vim

Set up vim configuration files

~$ make vim

If git is not available or you don’t want to use plug-ins, you can also use

~$ make vim-noplug

SSH Keys

Add all public keys (.pub) in ssh/ to ~/.ssh/authorized_keys

~$ make ssh

(fork this repository and place your own .pub files in the ssh folder)