Browse Source

chore: initial commit

main
Roxie Gibson 1 year ago
commit
d88cbecf94
No known key found for this signature in database
27 changed files with 1821 additions and 0 deletions
  1. +0
    -0
      dot_cache/zsh/.keep
  2. +0
    -0
      dot_config/git/.keep
  3. +1448
    -0
      dot_config/git/aliases
  4. +0
    -0
      dot_config/git/template/.keep
  5. +31
    -0
      dot_config/git/template/commit
  6. +0
    -0
      dot_config/git/template/init/.keep
  7. +1
    -0
      dot_config/git/template/init/HEAD
  8. +0
    -0
      dot_config/kitty/.keep
  9. +22
    -0
      dot_config/kitty/kitty.conf
  10. +80
    -0
      dot_config/kitty/private_current-theme.conf
  11. +0
    -0
      dot_config/zsh/.keep
  12. +11
    -0
      dot_config/zsh/aliases.zsh
  13. +7
    -0
      dot_config/zsh/exports.zsh
  14. +17
    -0
      dot_config/zsh/functions.zsh
  15. +2
    -0
      dot_config/zsh/golang.zsh
  16. +0
    -0
      dot_config/zsh/plugins/.keep
  17. +1
    -0
      dot_config/zsh/plugins/symlink_zsh-autosuggestions
  18. +1
    -0
      dot_config/zsh/plugins/symlink_zsh-completions
  19. +1
    -0
      dot_config/zsh/plugins/symlink_zsh-history-substring-search
  20. +1
    -0
      dot_config/zsh/plugins/symlink_zsh-syntax-highlighting
  21. +4
    -0
      dot_config/zsh/python.zsh
  22. +74
    -0
      dot_config/zsh/starship.toml
  23. +43
    -0
      dot_config/zsh/starship.zsh
  24. +20
    -0
      dot_gitconfig
  25. +1
    -0
      dot_ssh/config
  26. +15
    -0
      dot_ssh/config.d/lan
  27. +41
    -0
      dot_zshrc

+ 0
- 0
dot_cache/zsh/.keep View File


+ 0
- 0
dot_config/git/.keep View File


+ 1448
- 0
dot_config/git/aliases
File diff suppressed because it is too large
View File


+ 0
- 0
dot_config/git/template/.keep View File


+ 31
- 0
dot_config/git/template/commit View File

@@ -0,0 +1,31 @@
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|


# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|

# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23

# --- COMMIT END ---
# Type can be
# feat (new feature)
# fix (bug fix)
# refactor (refactoring production code)
# style (formatting, missing semi colons, etc; no code change)
# docs (changes to documentation)
# test (adding or refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
# --------------------
# Remember to
# - Capitalize the subject line
# - Use the imperative mood in the subject line
# - Do not end the subject line with a period
# - Separate subject from body with a blank line
# - Use the body to explain what and why vs. how
# - Can use multiple lines with "-" for bullet points in body
# --------------------
# For updated template, visit:
# https://gist.github.com/adeekshith/cd4c95a064977cdc6c50
# Licence CC

+ 0
- 0
dot_config/git/template/init/.keep View File


+ 1
- 0
dot_config/git/template/init/HEAD View File

@@ -0,0 +1 @@
ref: refs/heads/main

+ 0
- 0
dot_config/kitty/.keep View File


+ 22
- 0
dot_config/kitty/kitty.conf View File

@@ -0,0 +1,22 @@
include diff.conf
include dracula.conf

font_family inconsolata mono 12

tab_bar_min_tabs 2
tab_bar_style powerline

url_style single

strip_trailing_spaces always

bell_on_tab yes
window_alert_on_bell yes
enable_audio_bell no

background_opacity 0.95

# BEGIN_KITTY_THEME
# Catppuccin-Macchiato
include current-theme.conf
# END_KITTY_THEME

+ 80
- 0
dot_config/kitty/private_current-theme.conf View File

@@ -0,0 +1,80 @@
# vim:ft=kitty

## name: Catppuccin-Macchiato
## author: Pocco81 (https://github.com/Pocco81)
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/macchiato.conf
## blurb: Soothing pastel theme for the high-spirited!



# The basic colors
foreground #CAD3F5
background #24273A
selection_foreground #24273A
selection_background #F4DBD6

# Cursor colors
cursor #F4DBD6
cursor_text_color #24273A

# URL underline color when hovering with mouse
url_color #F4DBD6

# Kitty window border colors
active_border_color #B7BDF8
inactive_border_color #6E738D
bell_border_color #EED49F

# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system

# Tab bar colors
active_tab_foreground #181926
active_tab_background #C6A0F6
inactive_tab_foreground #CAD3F5
inactive_tab_background #1E2030
tab_bar_background #181926

# Colors for marks (marked text in the terminal)
mark1_foreground #24273A
mark1_background #B7BDF8
mark2_foreground #24273A
mark2_background #C6A0F6
mark3_foreground #24273A
mark3_background #7DC4E4

# The 16 terminal colors

# black
color0 #494D64
color8 #5B6078

# red
color1 #ED8796
color9 #ED8796

# green
color2 #A6DA95
color10 #A6DA95

# yellow
color3 #EED49F
color11 #EED49F

# blue
color4 #8AADF4
color12 #8AADF4

# magenta
color5 #F5BDE6
color13 #F5BDE6

# cyan
color6 #8BD5CA
color14 #8BD5CA

# white
color7 #B8C0E0
color15 #A5ADCB

+ 0
- 0
dot_config/zsh/.keep View File


+ 11
- 0
dot_config/zsh/aliases.zsh View File

@@ -0,0 +1,11 @@
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# vscode alias
alias "c"="$(which code) ./"
# ls stuff
alias ls="ls --color=auto"
alias la="ls -Ah"
alias ll="ls -lh"
alias lla="ls -Alh"

+ 7
- 0
dot_config/zsh/exports.zsh View File

@@ -0,0 +1,7 @@
export GOPATH=$HOME/code/go
export PATH=$PATH:$HOME/.local/bin:$GOPATH/bin
export EDITOR="nvim";

# Prefer UK English and use UTF-8.
export LANG='en_GB.UTF-8';
export LC_ALL='en_GB.UTF-8';

+ 17
- 0
dot_config/zsh/functions.zsh View File

@@ -0,0 +1,17 @@
# Create a new directory and enter it
function mkd() {
mkdir -p "$argv";cd "$argv";
}

# Wraps opening a tomb with removing swap and readding it later (hard coded for Roxie's method of swapfiles)
function tombs() {
sudo swapoff -a
tomb $@
sudo swapon /swapfile
swapon --show
}

totp_uri() {
# Args are Secret - Username - Provider
echo "otpauth://totp/${2}?secret=${1}&issuer=${3}"
}

+ 2
- 0
dot_config/zsh/golang.zsh View File

@@ -0,0 +1,2 @@
export GOPATH="$HOME/code/go" # Generic for now but maybe customise with direnv?
export GO111MODULE="on"

+ 0
- 0
dot_config/zsh/plugins/.keep View File


+ 1
- 0
dot_config/zsh/plugins/symlink_zsh-autosuggestions View File

@@ -0,0 +1 @@
/usr/share/zsh/plugins/zsh-autosuggestions

+ 1
- 0
dot_config/zsh/plugins/symlink_zsh-completions View File

@@ -0,0 +1 @@
/usr/share/zsh/site-functions

+ 1
- 0
dot_config/zsh/plugins/symlink_zsh-history-substring-search View File

@@ -0,0 +1 @@
/usr/share/zsh/plugins/zsh-history-substring-search

+ 1
- 0
dot_config/zsh/plugins/symlink_zsh-syntax-highlighting View File

@@ -0,0 +1 @@
/usr/share/zsh/plugins/zsh-syntax-highlighting

+ 4
- 0
dot_config/zsh/python.zsh View File

@@ -0,0 +1,4 @@
# Make Python use UTF-8 encoding for output to stdin, stdout, and stderr.
export PYTHONIOENCODING="UTF-8"
# Pipenv config for making venvs in project dir
export PIPENV_VENV_IN_PROJECT=1

+ 74
- 0
dot_config/zsh/starship.toml View File

@@ -0,0 +1,74 @@
# Don't print a new line at the start of the prompt
add_newline = false

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

[aws]
symbol = " "

[conda]
symbol = " "

[dart]
symbol = " "

[directory]
read_only = " "

[docker]
symbol = " "

[elixir]
symbol = " "

[elm]
symbol = " "

[git_branch]
symbol = "🌱 "

[golang]
symbol = " "

[haskell]
symbol = " "

[hg_branch]
symbol = " "

[java]
symbol = " "

[julia]
symbol = " "

[memory_usage]
symbol = " "

[nim]
symbol = " "

[nix_shell]
symbol = " "

[nodejs]
symbol = " "

[perl]
symbol = " "

[php]
symbol = " "

[python]
symbol = " "
scan_for_pyfiles = false

[ruby]
symbol = " "

[rust]
symbol = " "


+ 43
- 0
dot_config/zsh/starship.zsh View File

@@ -0,0 +1,43 @@
# Spaceship prompt
autoload -U promptinit; promptinit
prompt spaceship
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_PROMPT_SEPARATE_LINE=true
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
package # Package version
node # Node.js section
ruby # Ruby section
golang # Go section
php # PHP section
rust # Rust section
docker # Docker section
python
conda # conda virtualenv section
dotnet # .NET section
exec_time # Execution time
line_sep # Line break
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)

SPACESHIP_RPROMPT_ORDER=(
battery
time
)
SPACESHIP_TIME_SHOW=true



# Completion for kitty
if which kitty > /dev/null; then
kitty + complete setup zsh | source /dev/stdin
fi

# keychain
#eval $(keychain --eval --quiet --agents "gpg,ssh" id_ed25519 id_rsa)


+ 20
- 0
dot_gitconfig View File

@@ -0,0 +1,20 @@

[user]
name = Roxie Gibson
email = me@roxxers.xyz
signingKey = 49B0A560F2C05D0A4460B6935D0140EDEE123F4D

[init]
templateDir = /home/roxie/.config/git/template/init

[commit]
gpgsign = true
template = /home/roxie/.config/git/template/commit

[include]
path = .config/git/aliases

[tag]
forceSignAnnotated = true
[pull]
rebase = true

+ 1
- 0
dot_ssh/config View File

@@ -0,0 +1 @@
Include config.d/*

+ 15
- 0
dot_ssh/config.d/lan View File

@@ -0,0 +1,15 @@
Host gateway-uk-1
Hostname 77.68.74.169
Port 22543
User roxie

Host lesbos
Hostname 192.168.0.4
Port 42112
User roxie

Host lesbos.boot
Hostname 192.168.0.4
Port 22
User root
UserKnownHostsFile ~/.ssh/known_hosts.boot

+ 41
- 0
dot_zshrc View File

@@ -0,0 +1,41 @@
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history

export ZSH="/usr/share/oh-my-zsh" # make this into template

# ZSH settings
HYPHEN_INSENSITIVE="true"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
HIST_STAMPS="yyyy-mm-dd"
ZSH_CUSTOM="$HOME/.config/zsh"
DISABLE_AUTO_UPDATE="true"

plugins=(
archlinux
ansible
golang
pass
zsh-interactive-cd
#fzf
systemd
ssh-agent
httpie
colorize
cp # adds cpv command for using rsync like cp for local dirs
direnv
extract # adds x command to extract any archive
git # git aliases for the cli
#git-prompt
python
virtualenvwrapper
ufw
zsh-autosuggestions
zsh-syntax-highlighting
history-substring-search
)
# zsh completions
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh


Loading…
Cancel
Save