Skip to content

Commit

Permalink
feat: add new and improved dot configs
Browse files Browse the repository at this point in the history
  • Loading branch information
veeg committed Jan 11, 2021
1 parent 0d0ef6a commit 5a914b0
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 86 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# Veeg Linux Setup

Complete redeploy of a customized linux development environment.
One-time install script to deploy a versioned instance of all dotconfigs and commands of note.

## Installation on freh machine

* Ensure your SSH key is present in ~/.ssh
* Clone this repository into your home directory
* Run the ruby install script: ~/dotconfigs/install


Collection of dot configs, conveniently backed up and versioned in a repository rather than /dev/null
50 changes: 50 additions & 0 deletions dot.alacritty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
colors:
# Default colors
primary:
background: '0x122637'
foreground: '0xffffff'

# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
text: '0x122637'
cursor: '0xf0cb09'

# Normal colors
normal:
black: '0x000000'
red: '0xff0000'
green: '0x37dd21'
yellow: '0xfee409'
blue: '0x1460d2'
magenta: '0xff005d'
cyan: '0x00bbbb'
white: '0xbbbbbb'

# Bright colors
bright:
black: '0x545454'
red: '0xf40d17'
green: '0x3bcf1d'
yellow: '0xecc809'
blue: '0x5555ff'
magenta: '0xff55ff'
cyan: '0x6ae3f9'
white: '0xffffff'

# Font configuration (changes require restart)
font:
# The size to use.
size: 11

# The normal (roman) font face to use.
normal:
family: Droid Sans Mono Slashed for Powerline
style: Regular

# The bold font face
bold:
family: Droid Sans Mono Slashed for Powerline

# The italic font face
italic:
family: Droid Sans Mono Slashed for Powerline
9 changes: 9 additions & 0 deletions dot.awesome_commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Awesome commands

# rg

ripgrep is used instead of grep. Much better performance, better rendering.

# dua

Used instead of du. Greater speed, greater result.
44 changes: 44 additions & 0 deletions dot.starship.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

# Customize my prompt
format = """
$directory\
$git_branch\
$git_status\
$line_break\
$time\
$character\
"""

# Replace the "❯" symbol in the prompt with "❯❯"
[character]
format = "❯❯ "
success_symbol = "❯❯(bold green) "
error_symbol = "❯❯(bold red) "

# Disable the package module, hiding it from the prompt completely
[package]
disabled = true

# Disable the AWS module.
[aws]
disabled = true

# Set the time format
[time]
disabled = false
time_format = "%Y-%m-%d %H:%M:%S"
utc_time_offset = "+1"

# Directory setttings
[directory]
format = "[$path]($style)[$read_only]($read_only_style) "
truncation_length = 4
truncate_to_repo = false
truncation_symbol = "…/"

[username]
disabled = true

[hostname]
ssh_only = false
format = "[$hostname](bold red) ❯ "
37 changes: 37 additions & 0 deletions dot.tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
###
### General settings
###

# Make TMUX ignore escape time.
# This is to correct for a issue where a succesive key after ESC is pressed too fast.
# See: https://github.com/tmux/tmux/issues/907
set-option -s escape-time 0


###
### Movement
###

# Move between panes
bind -n M-l select-pane -L
bind -n M-h select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D

# Move between windows
bind -n C-l select-window -t +1
bind -n C-h select-window -t -1

# Turn on mouse mode, so we can move with the move
set -g mouse on

###
### Arrangement
###

# Make C-t spawn a new window
bind -n C-t new-window

# Vertically split a pane into two
bind -n M-i split-window -h
bind -n M-o split-window -v
104 changes: 19 additions & 85 deletions dot.zshrc
Original file line number Diff line number Diff line change
@@ -1,89 +1,20 @@
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
###
### Environment
###

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="cobalt2"
# Configure starship command line prompt
eval "$(starship init zsh)"

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
export PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$HOME/.rvm/bin:$HOME/.rvm/bin"
# rustlang
export PATH="$PATH:/$HOME/.cargo/bin"
export STARSHIP_CONFIG="$HOME/.starship.toml"

# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
###
### Alias
###

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

# User configuration

export PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$HOME/.rvm/bin:$HOME/.rvm/bin"
# export MANPATH="/usr/local/man:$MANPATH"

source $ZSH/oh-my-zsh.sh

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
#
# ############################
# ALIAS
# ############################
alias open="open_command"
alias vim="gvim -v"

Expand All @@ -94,7 +25,10 @@ function ws-rreplace {
find $1 -type f -exec sed --in-place 's/[[:space:]]\+$//' {} \+
}

# functions
function gui {
javaws http://$1.spacetec.no/mcs-gui/mcs-gui.jnlp\?user\=meos
}
###
### Enter TMUX
###

if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
exec tmux
fi

0 comments on commit 5a914b0

Please sign in to comment.