Last active
December 13, 2020 22:45
-
-
Save timsneath/69528c375e4364d0555215380164c768 to your computer and use it in GitHub Desktop.
Settings files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My dotfiles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', | |
// default font size in pixels for all tabs | |
fontSize: 13, | |
// font family with optional fallbacks | |
fontFamily: "Fira Code", | |
// default font weight: 'normal' or 'bold' | |
fontWeight: 'normal', | |
// font weight for bold characters: 'normal' or 'bold' | |
fontWeightBold: 'bold', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', | |
// terminal text color under BLOCK cursor | |
cursorAccentColor: '#000', | |
// `'BEAM'` for |, `'UNDERLINE'` for _, `'BLOCK'` for █ | |
cursorShape: 'BLOCK', | |
// set to `true` (without backticks and without quotes) for blinking cursor | |
cursorBlink: false, | |
// color of the text | |
foregroundColor: '#fff', | |
// terminal background color | |
// opacity is only supported on macOS | |
backgroundColor: '#000', | |
// terminal selection color | |
selectionColor: 'rgba(248,28,229,0.3)', | |
// border color (window, tabs) | |
borderColor: '#333', | |
// custom CSS to embed in the main window | |
css: '', | |
// custom CSS to embed in the terminal window | |
termCSS: '', | |
// if you're using a Linux setup which show native menus, set to false | |
// default: `true` on Linux, `true` on Windows, ignored on macOS | |
showHamburgerMenu: '', | |
// set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons | |
// additionally, set to `'left'` if you want them on the left, like in Ubuntu | |
// default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS | |
showWindowControls: '', | |
// custom padding (CSS format, i.e.: `top right bottom left`) | |
padding: '12px 14px', | |
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish) | |
// if left empty, your system's login shell will be used by default | |
// | |
// Windows | |
// - Make sure to use a full path if the binary name doesn't work | |
// - Remove `--login` in shellArgs | |
// | |
// Bash on Windows | |
// - Example: `C:\\Windows\\System32\\bash.exe` | |
// | |
// PowerShell on Windows | |
// - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe` | |
shell: '', | |
// for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`) | |
// by default `['--login']` will be used | |
shellArgs: ['--login'], | |
// for environment variables | |
env: {}, | |
// set to `false` for no bell | |
bell: 'false', | |
// if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard | |
copyOnSelect: false, | |
// if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH | |
defaultSSHApp: true, | |
// if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no | |
// selection is present (`true` by default on Windows and disables the context menu feature) | |
// quickEdit: true, | |
// URL to custom bell | |
// bellSoundURL: 'http://example.com/bell.mp3', | |
// for advanced config flags please refer to https://hyper.is/#cfg | |
}, | |
// a list of plugins to fetch and install from npm | |
// format: [@org/]project[#version] | |
// examples: | |
// `hyperpower` | |
// `@company/project` | |
// `project#1.0.1` | |
plugins: ["nord-hyper"], | |
// in development, you can create a directory under | |
// `~/.hyper_plugins/local/` and include it here | |
// to load it and avoid it being `npm install`ed | |
localPlugins: [], | |
keymaps: { | |
// Example | |
// 'window:devtools': 'cmd+alt+o', | |
}, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/timsneath/.oh-my-zsh" | |
# Powerlines theme | |
ZSH_THEME="agnoster" | |
DEFAULT_USER=`whoami` | |
# Uncomment the following line to use case-sensitive completion. | |
CASE_SENSITIVE="true" | |
# 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" | |
# Uncomment the following line to automatically update without prompting. | |
# DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS=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. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# 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? | |
# Standard 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 github osx vscode colored-man-pages flutter | |
) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# 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" | |
# Add Flutter and Dart paths | |
export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin:$PATH | |
# Homebrew stuff | |
export PATH=$HOME/homebrew/bin:$HOME/bin:$PATH | |
export LD_LIBRARY_PATH=$HOME/homebrew/lib:$LD_LIBRARY_PATH | |
# 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 bu="brew update && brew outdated | xargs brew upgrade && brew cleanup -s" | |
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome &" | |
alias ohmyzsh="code ~/.oh-my-zsh" | |
alias router="netstat -rnf inet | grep default" | |
alias stars="date && dart ~/git/me/github-tracker/repo-stars.dart -n 25" | |
alias win="ssh -f -N redstone" | |
alias wintop="ssh -f -N redstone" | |
alias wincloudtop="ssh -f -N redstone" | |
alias yt='youtube-dl -f '\''bestvideo[ext=mp4]+bestaudio[ext=m4a]'\' | |
alias zshconfig="code ~/.zshrc" | |
function gitme() { | |
if [[ "$1" == "" ]] | |
then | |
cd ~/git/me | |
else | |
cd ~/git/me && cd "$1" | |
fi | |
} | |
function hasflutter() { | |
unzip -l "$1" | grep "libflutter.so" | |
if [ $? -eq 1 ]; then | |
echo "no libflutter.so found" | |
fi | |
} | |
# Flutter completions | |
if type complete &>/dev/null; then | |
__flutter_completion() { | |
local si="$IFS" | |
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ | |
COMP_LINE="$COMP_LINE" \ | |
COMP_POINT="$COMP_POINT" \ | |
flutter completion -- "${COMP_WORDS[@]}" \ | |
2>/dev/null)) || return $? | |
IFS="$si" | |
} | |
complete -F __flutter_completion flutter | |
elif type compdef &>/dev/null; then | |
__flutter_completion() { | |
si=$IFS | |
compadd -- $(COMP_CWORD=$((CURRENT-1)) \ | |
COMP_LINE=$BUFFER \ | |
COMP_POINT=0 \ | |
flutter completion -- "${words[@]}" \ | |
2>/dev/null) | |
IFS=$si | |
} | |
compdef __flutter_completion flutter | |
elif type compctl &>/dev/null; then | |
__flutter_completion() { | |
local cword line point words si | |
read -Ac words | |
read -cn cword | |
let cword-=1 | |
read -l line | |
read -ln point | |
si="$IFS" | |
IFS=$'\n' reply=($(COMP_CWORD="$cword" \ | |
COMP_LINE="$line" \ | |
COMP_POINT="$point" \ | |
flutter completion -- "${words[@]}" \ | |
2>/dev/null)) || return $? | |
IFS="$si" | |
} | |
compctl -K __flutter_completion flutter | |
fi | |
# Disable hg prompt, per | |
# https://g3doc.corp.google.com/company/users/lianmeng/sharing/setup-oh-my-zsh.md | |
prompt_hg() {} | |
# Create PDF of man document and pipe to Preview | |
pman() { man -t "$@" | open -f -a Preview; } | |
source /Users/timsneath/Library/Preferences/org.dystroy.broot/launcher/bash/br | |
# Add NVM | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "/Users/timsneath/homebrew/opt/nvm/nvm.sh" ] && . "/Users/timsneath/homebrew/opt/nvm/nvm.sh" # This loads nvm | |
[ -s "/Users/timsneath/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/Users/timsneath/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion | |
# Add Android SDK | |
export ANDROID_HOME="$HOME/android" | |
export ANDROID_SDK_ROOT="$HOME/android" | |
export PATH="$PATH:$HOME/android/cmdline-tools/tools/bin" | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// VS Code general settings | |
"breadcrumbs.enabled": true, | |
"editor.cursorBlinking": "smooth", | |
"editor.cursorSmoothCaretAnimation": true, | |
"editor.detectIndentation": false, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 13, | |
"editor.formatOnSave": true, | |
"editor.lineHeight": 18, | |
"editor.minimap.enabled": false, | |
"editor.renderWhitespace": "boundary", | |
"editor.rulers": [80, 120], | |
"editor.smoothScrolling": true, | |
"editor.wordBasedSuggestions": false, | |
"explorer.confirmDelete": false, | |
"explorer.confirmDragAndDrop": false, | |
"window.zoomLevel": 0, | |
"workbench.activityBar.visible": true, | |
"workbench.colorTheme": "Nord", | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
// Git settings | |
"git.autofetch": true, | |
"git.confirmSync": false, | |
"git.enableSmartCommit": true, | |
// Dart & Flutter settings | |
"dart.closingLabels": false, | |
"dart.debugSdkLibraries": false, | |
"dart.debugExternalLibraries": false, | |
"dart.doNotFormat": ["/Users/timsneath/git/flutter/**"], | |
"dart.flutterCreateAndroidLanguage": "kotlin", | |
"dart.flutterCreateIOSLanguage": "swift", | |
"dart.flutterCreateOrganization": "org.sneath", | |
"dart.runPubGetOnPubspecChanges": true, | |
"dart.previewFlutterUiGuides": true, | |
"dart.previewNewCompletionPlaceholders": true, | |
// Formatters | |
"json.format.enable": false, | |
"yaml.format.enable": false, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment