cmc/dotfiles

Using GNU Stow to manage my dotfiles. config dotfiles macos stow

Commit 663b4c29a5

663b4c29a51b9fd28f21154ef90ebe39593fea16

Unsigned

cmc <hello@cleberg.net> · 2023-11-03 23:26 UTC

initial commit

Layout: unified · split

.zprofile added +15
@@ -0,0 +1,15 @@
1if test -z "${XDG_RUNTIME_DIR}"; then
2 export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
3 if ! test -d "${XDG_RUNTIME_DIR}"; then
4 mkdir "${XDG_RUNTIME_DIR}"
5 chmod 0700 "${XDG_RUNTIME_DIR}"
6 fi
7fi
8
9# Sway fixes for firefox and screensharing
10export MOZ_ENABLE_WAYLAND="1"
11export XDG_CURRENT_DESKTOP=sway
12export QT_QPA_PLATFORM="wayland-egl"
13
14# Connect to VPN
15doas $HOME/vpn.sh
.zshrc added +109
@@ -0,0 +1,109 @@
1# Export GPG for git signing
2export GPG_TTY=$(tty)
3
4# If you come from bash you might have to change your $PATH.
5export PATH=$HOME/bin:/usr/local/bin:$PATH
6
7# Add local path executables
8export PATH=/home/cyborg/.local/bin:$PATH
9
10# Path to your oh-my-zsh installation.
11export ZSH="$HOME/.oh-my-zsh"
12
13# Set name of the theme to load --- if set to "random", it will
14# load a random theme each time oh-my-zsh is loaded, in which case,
15# to know which specific one was loaded, run: echo $RANDOM_THEME
16# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
17ZSH_THEME="mh"
18
19# Set list of themes to pick from when loading at random
20# Setting this variable when ZSH_THEME=random will cause zsh to load
21# a theme from this variable instead of looking in $ZSH/themes/
22# If set to an empty array, this variable will have no effect.
23# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
24
25# Uncomment the following line to use case-sensitive completion.
26# CASE_SENSITIVE="true"
27
28# Uncomment the following line to use hyphen-insensitive completion.
29# Case-sensitive completion must be off. _ and - will be interchangeable.
30# HYPHEN_INSENSITIVE="true"
31
32# Uncomment one of the following lines to change the auto-update behavior
33# zstyle ':omz:update' mode disabled # disable automatic updates
34# zstyle ':omz:update' mode auto # update automatically without asking
35# zstyle ':omz:update' mode reminder # just remind me to update when it's time
36
37# Uncomment the following line to change how often to auto-update (in days).
38# zstyle ':omz:update' frequency 13
39
40# Uncomment the following line if pasting URLs and other text is messed up.
41# DISABLE_MAGIC_FUNCTIONS="true"
42
43# Uncomment the following line to disable colors in ls.
44# DISABLE_LS_COLORS="true"
45
46# Uncomment the following line to disable auto-setting terminal title.
47# DISABLE_AUTO_TITLE="true"
48
49# Uncomment the following line to enable command auto-correction.
50# ENABLE_CORRECTION="true"
51
52# Uncomment the following line to display red dots whilst waiting for completion.
53# You can also set it to another string to have that shown instead of the default red dots.
54# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
55# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
56# COMPLETION_WAITING_DOTS="true"
57
58# Uncomment the following line if you want to disable marking untracked files
59# under VCS as dirty. This makes repository status check for large repositories
60# much, much faster.
61# DISABLE_UNTRACKED_FILES_DIRTY="true"
62
63# Uncomment the following line if you want to change the command execution time
64# stamp shown in the history command output.
65# You can set one of the optional three formats:
66# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
67# or set a custom format using the strftime function format specifications,
68# see 'man strftime' for details.
69# HIST_STAMPS="mm/dd/yyyy"
70
71# Would you like to use another custom folder than $ZSH/custom?
72# ZSH_CUSTOM=/path/to/new-custom-folder
73
74# Which plugins would you like to load?
75# Standard plugins can be found in $ZSH/plugins/
76# Custom plugins may be added to $ZSH_CUSTOM/plugins/
77# Example format: plugins=(rails git textmate ruby lighthouse)
78# Add wisely, as too many plugins slow down shell startup.
79plugins=(git zsh-autosuggestions k)
80
81source $ZSH/oh-my-zsh.sh
82
83# User configuration
84
85# export MANPATH="/usr/local/man:$MANPATH"
86
87# You may need to manually set your language environment
88# export LANG=en_US.UTF-8
89
90# Preferred editor for local and remote sessions
91# if [[ -n $SSH_CONNECTION ]]; then
92# export EDITOR='vim'
93# else
94# export EDITOR='mvim'
95# fi
96
97# Compilation flags
98# export ARCHFLAGS="-arch x86_64"
99
100# Set personal aliases, overriding those provided by oh-my-zsh libs,
101# plugins, and themes. Aliases can be placed here, though oh-my-zsh
102# users are encouraged to define aliases within the ZSH_CUSTOM folder.
103# For a full list of active aliases, run `alias`.
104#
105# Example aliases
106# alias zshconfig="mate ~/.zshrc"
107# alias ohmyzsh="mate ~/.oh-my-zsh"
108alias l="k -a"
109alias config='/usr/bin/git --git-dir=/home/cyborg/.dotfiles/ --work-tree=/home/cyborg'
vpn.sh added +10
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3ls /etc/wireguard/us-* |sort -R |tail -n 1 |while read file; do
4 # Replace `doas` with `sudo` if your machine uses `sudo`,
5 # or remove `doas` if users don't need to su to run wg-quick
6 wg-quick up $file;
7 printf "\nCreated Mullvad wireguard connection with file: $file";
8 printf "\n\nPrinting new IP info:\n"
9 curl https://am.i.mullvad.net/connected
10done