Skip to content

Instantly share code, notes, and snippets.

View ryanolsonx's full-sized avatar

Ryan Olson ryanolsonx

  • SLC, UT
View GitHub Profile
@ryanolsonx
ryanolsonx / setup.bash
Last active May 31, 2024 15:36
My Setup
#!/usr/bin/env bash
cat << EOF > ~/.zshrc
function git_branch_name() {
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
if [[ $branch == "" ]];
then
:
else
echo ' ['$branch']'
@ryanolsonx
ryanolsonx / cyberpunk.json
Created February 18, 2024 04:00
Cyberpunk for Zed (Max Cyberpunk syntax mixed with Night Owl workbench)
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Cyberpunk",
"author": "Ryan Olson",
"themes": [
{
"name": "Cyberpunk",
"appearance": "dark",
"style": {
"elevated_surface.background": "#011627",
@ryanolsonx
ryanolsonx / settings.json
Last active June 20, 2024 16:09
Latest vs code settings
{
"editor.bracketPairColorization.enabled": false,
"editor.codeActionsOnSave": { "source.fixAll.eslint": "always" },
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontSize": 14,
"editor.formatOnSave": true,
"editor.guides.indentation": false,
"editor.matchBrackets": "near",
"editor.minimap.enabled": false,
"editor.occurrencesHighlight": "off",
@ryanolsonx
ryanolsonx / snippets.sh
Created June 13, 2022 15:31
Setup snippets
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Configure Git
git config --global user.name "Ryan Olson"
git config --global user.email [email protected]
git config --global core.autocrlf input
touch ~/.gitignore
git config --global core.excludesFile ~/.gitignore
@ryanolsonx
ryanolsonx / install.sh
Last active June 7, 2022 14:59
Minimalist dev env
#!/usr/bin/env bash
set -e
echo 'set ai et sts=2 sw=2 dir=/tmp bdir=/tmp bs=2' > ~/.vimrc
echo 'export PATH="$PATH":"$HOME/bin"' > ~/.zshrc
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
@ryanolsonx
ryanolsonx / install.sh
Last active June 7, 2022 00:00
Bigger dev env
#!/usr/bin/env bash -e
echo "Setting up dotfiles..."
echo 'unbind C-b
set -g prefix `
bind-key ` last-window
bind-key e send-prefix
set -g default-terminal "screen-256color"
set -g escape-time 0
@ryanolsonx
ryanolsonx / install.sh
Last active June 7, 2022 14:18
Setup dev environment
#!/bin/bash -e
echo 'alias ls="ls -FA"
export EDITOR=vim
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export PATH="$PATH":"/usr/local/bin":"$HOME/bin"' > ~/.zshrc