├── dot_vimrc ├── .chezmoiignore ├── dot_bashrc ├── dot_zprofile ├── .vscode └── settings.json ├── dot_nanorc ├── run_once_00_clean_up.sh.tmpl ├── dot_curlrc ├── dot_huskyrc ├── .chezmoi.toml.tmpl ├── README.md ├── dot_wgetrc ├── .gitignore ├── run_once_10_brew_packages_installation.sh.tmpl ├── dot_zplug.sh ├── install.sh ├── dot_alacritty.yml ├── dot_zshrc ├── run_once_90_macos_configuration.sh.tmpl └── dot_hyper.js /dot_vimrc: -------------------------------------------------------------------------------- 1 | filetype plugin indent on 2 | syntax on -------------------------------------------------------------------------------- /.chezmoiignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | README.md 3 | install.sh 4 | -------------------------------------------------------------------------------- /dot_bashrc: -------------------------------------------------------------------------------- 1 | [ -f ~/.fzf.bash ] && source ~/.fzf.bash 2 | -------------------------------------------------------------------------------- /dot_zprofile: -------------------------------------------------------------------------------- 1 | [ -f /opt/homebrew/bin/brew ] && eval "$(/opt/homebrew/bin/brew shellenv)" 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "*.toml.tmpl": "ini", 4 | "*.sh.tmpl": "shellscript", 5 | "dot_*rc": "shellscript", 6 | } 7 | } -------------------------------------------------------------------------------- /dot_nanorc: -------------------------------------------------------------------------------- 1 | set autoindent 2 | set tabsize 4 3 | set linenumbers 4 | set mouse 5 | set titlecolor white,lightblack 6 | set numbercolor lightblack 7 | include /usr/local/share/nano/*.nanorc 8 | -------------------------------------------------------------------------------- /run_once_00_clean_up.sh.tmpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eufo pipefail 4 | 5 | # Uninstall old dependencies 6 | brew uninstall zsh-autosuggestions >/dev/null 2>&1 || true 7 | brew uninstall zsh-syntax-highlighting >/dev/null 2>&1 || true -------------------------------------------------------------------------------- /dot_curlrc: -------------------------------------------------------------------------------- 1 | # Wait 60 seconds before timing out. 2 | connect-timeout = 60 3 | 4 | # Disguise as Edge on Windows 10. 5 | user-agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19582" 6 | -------------------------------------------------------------------------------- /dot_huskyrc: -------------------------------------------------------------------------------- 1 | # https://github.com/typicode/husky/issues/912 2 | # https://typicode.github.io/husky/#/?id=command-not-found 3 | # This loads nvm.sh and sets the correct PATH before running hook 4 | 5 | export NVM_DIR="$HOME/.nvm" 6 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 7 | -------------------------------------------------------------------------------- /.chezmoi.toml.tmpl: -------------------------------------------------------------------------------- 1 | {{/* boolean feature tags */}} 2 | {{- $personal_device := false -}}{{/* true if this machine should have personal setup */}} 3 | {{- $work_device := false -}}{{/* true if this machine should have work setup */}} 4 | {{- "" -}} 5 | 6 | {{- $personal_device = promptBool "personal_device" -}} 7 | {{- $work_device = promptBool "work_device" -}} 8 | 9 | [data] 10 | personal_device = {{ $personal_device }} 11 | work_device = {{ $work_device }} 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # github.com/chimurai/dotfiles 2 | 3 | dotfiles, managed with [`chezmoi`](https://github.com/twpayne/chezmoi). 4 | 5 | ## Install 6 | 7 | This'll install Homebrew and chezmoi. After installation `chezmoi` will be initialized. 8 | 9 | ```shell 10 | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/chimurai/dotfiles/master/install.sh)" 11 | ``` 12 | 13 | ## Manual install 14 | 15 | Prerequisite: Homebrew & chezmoi 16 | 17 | ```shell 18 | # Setup 19 | chezmoi init https://github.com/chimurai/dotfiles.git 20 | 21 | # Configure ~/.config/chezmoi/chezmoi.toml 22 | chezmoi init 23 | ``` 24 | -------------------------------------------------------------------------------- /dot_wgetrc: -------------------------------------------------------------------------------- 1 | # Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!) 2 | timeout = 60 3 | 4 | # Retry a few times when a download fails, but don’t overdo it. (The default is 20!) 5 | tries = 3 6 | 7 | # Disguise as Edge on Windows 10 8 | user_agent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.19582 9 | 10 | # Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one 11 | adjust_extension = on 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.toptal.com/developers/gitignore/api/macos 2 | # Edit at https://www.toptal.com/developers/gitignore?templates=macos 3 | 4 | ### macOS ### 5 | # General 6 | .DS_Store 7 | .AppleDouble 8 | .LSOverride 9 | 10 | # Icon must end with two \r 11 | Icon 12 | 13 | 14 | # Thumbnails 15 | ._* 16 | 17 | # Files that might appear in the root of a volume 18 | .DocumentRevisions-V100 19 | .fseventsd 20 | .Spotlight-V100 21 | .TemporaryItems 22 | .Trashes 23 | .VolumeIcon.icns 24 | .com.apple.timemachine.donotpresent 25 | 26 | # Directories potentially created on remote AFP share 27 | .AppleDB 28 | .AppleDesktop 29 | Network Trash Folder 30 | Temporary Items 31 | .apdisk 32 | 33 | # End of https://www.toptal.com/developers/gitignore/api/macos 34 | -------------------------------------------------------------------------------- /run_once_10_brew_packages_installation.sh.tmpl: -------------------------------------------------------------------------------- 1 | {{- if (eq .chezmoi.os "darwin") -}} 2 | #!/bin/bash 3 | 4 | set -eufo pipefail 5 | 6 | formulae=( 7 | autojump 8 | bat 9 | curl 10 | deno 11 | fzf 12 | git 13 | git-delta 14 | git-gui 15 | jq 16 | less 17 | nano 18 | nvm 19 | tealdeer 20 | wget 21 | yarn 22 | zplug 23 | ) 24 | casks=( 25 | aerial 26 | clipy 27 | google-chrome 28 | kap 29 | iterm2 30 | visual-studio-code 31 | ) 32 | 33 | {{ if .work_device }} 34 | formulae+=( 35 | docker 36 | go 37 | mitmproxy 38 | rancher 39 | TomAnthony/brews/itermocil 40 | ) 41 | casks+=( 42 | beyond-compare 43 | hex-fiend 44 | microsoft-teams 45 | p4v 46 | stats 47 | ) 48 | {{ end }} 49 | 50 | brew update 51 | 52 | brew install ${formulae[@]} 53 | brew install --cask ${casks[@]} 54 | 55 | brew cleanup 56 | {{ end }} 57 | -------------------------------------------------------------------------------- /dot_zplug.sh: -------------------------------------------------------------------------------- 1 | export ZPLUG_HOME=$(brew --prefix)/opt/zplug 2 | 3 | source $ZPLUG_HOME/init.zsh 4 | 5 | zplug "plugins/nvm", from:oh-my-zsh 6 | zplug "plugins/git", from:oh-my-zsh 7 | zplug "plugins/autojump", from:oh-my-zsh 8 | 9 | zplug "bigH/git-fuzzy", as:command, use:"bin/git-fuzzy" 10 | 11 | zplug "junegunn/fzf", use:"shell/*.zsh", defer:2 12 | zplug "zsh-users/zsh-syntax-highlighting", defer:2 13 | zplug "zsh-users/zsh-autosuggestions", as:plugin, defer:2 14 | zplug 'zsh-users/zsh-completions', depth:1 # more completions 15 | 16 | zplug "mafredri/zsh-async", from:github 17 | zplug "sindresorhus/pure", use:pure.zsh, from:github, at:main, as:theme 18 | 19 | zplug load 20 | 21 | # Install plugins if there are plugins that have not been installed 22 | if ! zplug check --verbose; then 23 | printf "Install? [y/N]: " 24 | if read -q; then 25 | echo; zplug install 26 | fi 27 | fi 28 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eufo pipefail 4 | 5 | echo "" 6 | echo "🤚 This script will setup .dotfiles for you." 7 | read -n 1 -r -s -p $' Press any key to continue or Ctrl+C to abort...\n\n' 8 | 9 | 10 | # Install Homebrew 11 | command -v brew >/dev/null 2>&1 || \ 12 | (echo '🍺 Installing Homebrew' && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)") 13 | 14 | # Install Oh My Zsh 15 | if [ ! -f ~/.oh-my-zsh/oh-my-zsh.sh ]; then 16 | (echo '💰 Installing oh-my-zsh' && yes | sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)") 17 | fi 18 | 19 | # Install chezmoi 20 | command -v chezmoi >/dev/null 2>&1 || \ 21 | (echo '👊 Installing chezmoi' && brew install chezmoi) 22 | 23 | if [ -d "$HOME/.local/share/chezmoi/.git" ]; then 24 | echo "🚸 chezmoi already initialized" 25 | echo " Reinitialize with: 'chezmoi init https://github.com/chimurai/dotfiles.git'" 26 | else 27 | echo "🚀 Initialize dotfiles with:" 28 | echo " chezmoi init https://github.com/chimurai/dotfiles.git" 29 | fi 30 | 31 | echo "" 32 | echo "Done." -------------------------------------------------------------------------------- /dot_alacritty.yml: -------------------------------------------------------------------------------- 1 | window: 2 | # Window padding (changes require restart) 3 | # 4 | # Blank space added around the window in pixels. This padding is scaled 5 | # by DPI and the specified value is always added at both opposing sides. 6 | padding: 7 | x: 10 8 | y: 25 9 | 10 | # Window decorations 11 | # Available values: 12 | # - `full`: Window with title bar and title bar buttons 13 | # - `none`: Window without title bar, rounded corners, or drop shadow 14 | # - `transparent`: Window with title bar with transparent background and title 15 | # bar buttons 16 | # - `buttonless`: Window with title bar with transparent background and no 17 | # title bar buttons 18 | decorations: transparent 19 | 20 | cursor: 21 | style: 22 | blinking: Always 23 | blink_interval: 500 24 | 25 | # Font configuration (changes require restart) 26 | font: 27 | # Point size 28 | size: 12.0 29 | 30 | # Colors (Snazzy) https://github.com/alebelcor/alacritty-snazzy/blob/master/snazzy.yml 31 | draw_bold_text_with_bright_colors: true 32 | 33 | colors: 34 | 35 | primary: 36 | background: '#282a36' 37 | foreground: '#eff0eb' 38 | 39 | cursor: 40 | cursor: '#97979b' 41 | 42 | selection: 43 | text: '#282a36' 44 | background: '#feffff' 45 | 46 | normal: 47 | black: '#282a36' 48 | red: '#ff5c57' 49 | green: '#5af78e' 50 | yellow: '#f3f99d' 51 | blue: '#57c7ff' 52 | magenta: '#ff6ac1' 53 | cyan: '#9aedfe' 54 | white: '#f1f1f0' 55 | 56 | bright: 57 | black: '#686868' 58 | red: '#ff5c57' 59 | green: '#5af78e' 60 | yellow: '#f3f99d' 61 | blue: '#57c7ff' 62 | magenta: '#ff6ac1' 63 | cyan: '#9aedfe' 64 | white: '#eff0eb' 65 | 66 | 67 | key_bindings: 68 | - { key: Left, mods: Alt, chars: "\x1bb" } # backward-word 69 | - { key: Right, mods: Alt, chars: "\x1bf" } # forward-word 70 | -------------------------------------------------------------------------------- /dot_zshrc: -------------------------------------------------------------------------------- 1 | # Fig pre block. Keep at the top of this file. 2 | [[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" 3 | 4 | export LC_ALL=en_US.UTF-8 5 | export LANG=en_US.UTF-8 6 | 7 | HISTFILE=~/.zsh_history 8 | HISTSIZE=10000 9 | SAVEHIST=10000 10 | 11 | # zsh options: http://zsh.sourceforge.net/Doc/Release/Options.html 12 | setopt APPEND_HISTORY # adds history 13 | setopt HIST_IGNORE_ALL_DUPS # If a new command line being added to the history list duplicates an older one, the older command is removed from the list 14 | setopt HIST_IGNORE_SPACE # No history when starting command with space 15 | setopt HIST_SAVE_NO_DUPS # When writing out the history file, older commands that duplicate newer ones are omitted 16 | 17 | # If you come from bash you might have to change your $PATH. 18 | # export PATH=$HOME/bin:/usr/local/bin:$PATH 19 | 20 | # Path to your oh-my-zsh installation. 21 | export ZSH=~/.oh-my-zsh 22 | 23 | # Set name of the theme to load. Optionally, if you set this to "random" 24 | # it'll load a random theme each time that oh-my-zsh is loaded. 25 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes 26 | # Disable oh-my-zsh themes for pure-prompt (https://github.com/sindresorhus/pure) 27 | ZSH_THEME="" 28 | 29 | # Set list of themes to load 30 | # Setting this variable when ZSH_THEME=random 31 | # cause zsh load theme from this variable instead of 32 | # looking in ~/.oh-my-zsh/themes/ 33 | # An empty array have no effect 34 | # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) 35 | 36 | # Uncomment the following line to use case-sensitive completion. 37 | # CASE_SENSITIVE="true" 38 | 39 | # Uncomment the following line to use hyphen-insensitive completion. Case 40 | # sensitive completion must be off. _ and - will be interchangeable. 41 | # HYPHEN_INSENSITIVE="true" 42 | 43 | # Uncomment the following line to disable bi-weekly auto-update checks. 44 | # DISABLE_AUTO_UPDATE="true" 45 | 46 | # Uncomment the following line to change how often to auto-update (in days). 47 | # export UPDATE_ZSH_DAYS=13 48 | 49 | # Uncomment the following line to disable colors in ls. 50 | # DISABLE_LS_COLORS="true" 51 | 52 | # Uncomment the following line to disable auto-setting terminal title. 53 | DISABLE_AUTO_TITLE="true" 54 | 55 | # Uncomment the following line to enable command auto-correction. 56 | # ENABLE_CORRECTION="true" 57 | 58 | # Uncomment the following line to display red dots whilst waiting for completion. 59 | # COMPLETION_WAITING_DOTS="true" 60 | 61 | # Uncomment the following line if you want to disable marking untracked files 62 | # under VCS as dirty. This makes repository status check for large repositories 63 | # much, much faster. 64 | # DISABLE_UNTRACKED_FILES_DIRTY="true" 65 | 66 | # Uncomment the following line if you want to change the command execution time 67 | # stamp shown in the history command output. 68 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 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 | source $ZSH/oh-my-zsh.sh 75 | 76 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 77 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 78 | # Example format: plugins=(rails git textmate ruby lighthouse) 79 | # Add wisely, as too many plugins slow down shell startup. 80 | # plugins=() 81 | 82 | # load plugins 83 | [ -f ~/.zplug.sh ] && source ~/.zplug.sh 84 | [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh 85 | 86 | # User configuration 87 | 88 | # export MANPATH="/usr/local/man:$MANPATH" 89 | 90 | # You may need to manually set your language environment 91 | # export LANG=en_US.UTF-8 92 | 93 | # Preferred editor for local and remote sessions 94 | # if [[ -n $SSH_CONNECTION ]]; then 95 | # export EDITOR='vim' 96 | # else 97 | # export EDITOR='mvim' 98 | # fi 99 | 100 | # Compilation flags 101 | # export ARCHFLAGS="-arch x86_64" 102 | 103 | # ssh 104 | # export SSH_KEY_PATH="~/.ssh/rsa_id" 105 | 106 | # Set personal aliases, overriding those provided by oh-my-zsh libs, 107 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh 108 | # users are encouraged to define aliases within the ZSH_CUSTOM folder. 109 | # For a full list of active aliases, run `alias`. 110 | # 111 | # Example aliases 112 | # alias zshconfig="mate ~/.zshrc" 113 | # alias ohmyzsh="mate ~/.oh-my-zsh" 114 | 115 | # key bindings 116 | bindkey '[C' forward-word # alt+left 117 | bindkey '[D' backward-word # alt+right 118 | 119 | export PATH="/usr/local/sbin:$PATH" 120 | export PATH="$HOME/.deno/bin:$PATH" 121 | export PATH="$HOME/go/bin:$PATH" 122 | 123 | # Fig post block. Keep at the bottom of this file. 124 | [[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh" 125 | -------------------------------------------------------------------------------- /run_once_90_macos_configuration.sh.tmpl: -------------------------------------------------------------------------------- 1 | {{ if (eq .chezmoi.os "darwin") -}} 2 | #!/bin/bash 3 | 4 | set -eufo pipefail 5 | 6 | # ~/.macos — https://mths.be/macos 7 | 8 | ############################################################################### 9 | # General UI/UX # 10 | ############################################################################### 11 | 12 | # Disable automatic capitalization as it’s annoying when typing code 13 | defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false 14 | 15 | # Disable smart dashes as they’re annoying when typing code 16 | defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false 17 | 18 | # Disable automatic period substitution as it’s annoying when typing code 19 | defaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false 20 | 21 | # Disable smart quotes as they’re annoying when typing code 22 | defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false 23 | 24 | # Disable auto-correct 25 | defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false 26 | 27 | ################################################# 28 | # Dock # 29 | ################################################# 30 | 31 | # Set the icon size of Dock items to 32 pixels 32 | defaults write com.apple.dock tilesize -int 32 33 | 34 | ################################################# 35 | # Safari & WebKit # 36 | ################################################# 37 | 38 | # Privacy: don’t send search queries to Apple 39 | defaults write com.apple.Safari UniversalSearchEnabled -bool false 40 | defaults write com.apple.Safari SuppressSearchSuggestions -bool true 41 | 42 | # Show the full URL in the address bar (note: this still hides the scheme) 43 | defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true 44 | 45 | # Set Safari’s home page to `about:blank` for faster loading 46 | defaults write com.apple.Safari HomePage -string "about:blank" 47 | 48 | # Prevent Safari from opening ‘safe’ files automatically after downloading 49 | defaults write com.apple.Safari AutoOpenSafeDownloads -bool false 50 | 51 | # Enable the Develop menu and the Web Inspector in Safari 52 | defaults write com.apple.Safari IncludeDevelopMenu -bool true 53 | defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true 54 | defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true 55 | 56 | # Disable auto-correct 57 | defaults write com.apple.Safari WebAutomaticSpellingCorrectionEnabled -bool false 58 | 59 | # Enable “Do Not Track” 60 | defaults write com.apple.Safari SendDoNotTrackHTTPHeader -bool true 61 | 62 | ################################################# 63 | # Keyboard # 64 | ################################################# 65 | 66 | # Set a blazingly fast keyboard repeat rate 67 | defaults write NSGlobalDomain InitialKeyRepeat -int 15 68 | defaults write NSGlobalDomain KeyRepeat -int 2 69 | 70 | ################################################# 71 | # Trackpad # 72 | ################################################# 73 | defaults write NSGlobalDomain com.apple.trackpad.forceClick -int 1 74 | defaults write NSGlobalDomain com.apple.trackpad.scaling -float 2 75 | defaults write com.apple.AppleMultitouchTrackpad Clicking -int 1 76 | 77 | ################################################# 78 | # Terminal # 79 | ################################################# 80 | 81 | # General / New window with Pro profile: 82 | defaults write com.apple.Terminal "Startup Window Settings" -string Pro 83 | 84 | # Profile: default Pro profile: 85 | defaults write com.apple.Terminal "Default Window Settings" -string Pro 86 | 87 | ################################################# 88 | # iTerm2 # 89 | ################################################# 90 | 91 | # 💡 echo nested values with "print"; use "set" to write values: 92 | # /usr/libexec/PlistBuddy -c "print 'New Bookmarks':0:'Scrollback Lines'" ~/Library/Preferences/com.googlecode.iterm2.plist 93 | # /usr/libexec/PlistBuddy -c "write 'New Bookmarks':0:'Scrollback Lines'" 10000 ~/Library/Preferences/com.googlecode.iterm2.plist 94 | 95 | # Appearance/Dimming: Dim background windows 96 | defaults write com.googlecode.iterm2 DimBackgroundWindows -bool true 97 | 98 | # Appearance/Dimming: Dimming amount 99 | defaults write com.googlecode.iterm2 SplitPaneDimmingAmount -float 0.15 100 | 101 | # Advanced: Scroll wheel sends arrow keys when in alternate screen mode. (ie. scrolling in bat) 102 | defaults write com.googlecode.iterm2 AlternateMouseScroll -int 1 103 | 104 | # Profiles/Window: Settings for New Windows 105 | /usr/libexec/PlistBuddy -c "set 'New Bookmarks':0:'Rows' 26" ~/Library/Preferences/com.googlecode.iterm2.plist 106 | 107 | # Profiles/Terminal: Scrollback Buffer (10000 lines) 108 | /usr/libexec/PlistBuddy -c "set 'New Bookmarks':0:'Scrollback Lines' 10000" ~/Library/Preferences/com.googlecode.iterm2.plist 109 | 110 | # Profiles/Text: Enable Blinking Cursor 111 | /usr/libexec/PlistBuddy -c "set 'New Bookmarks':0:'Blinking Cursor' 1" ~/Library/Preferences/com.googlecode.iterm2.plist 112 | 113 | # Profile/Colors: Snazzy Theme 114 | defaults read com.googlecode.iterm2 | grep -q "Snazzy" || 115 | (curl -Ls https://raw.githubusercontent.com/sindresorhus/iterm2-snazzy/main/Snazzy.itermcolors > /tmp/Snazzy.itermcolors && open /tmp/Snazzy.itermcolors) 116 | 117 | {{ end -}} 118 | 119 | echo "Done. Note that some of these changes require a logout/restart to take effect." 120 | -------------------------------------------------------------------------------- /dot_hyper.js: -------------------------------------------------------------------------------- 1 | // Future versions of Hyper may add additional config options, 2 | // which will not automatically be merged into this file. 3 | // See https://hyper.is#cfg for all currently supported options. 4 | 5 | module.exports = { 6 | config: { 7 | // choose either `'stable'` for receiving highly polished, 8 | // or `'canary'` for less polished but more frequent updates 9 | updateChannel: 'stable', 10 | 11 | // default font size in pixels for all tabs 12 | fontSize: 12, 13 | 14 | // font family with optional fallbacks 15 | fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', 16 | 17 | // default font weight: 'normal' or 'bold' 18 | fontWeight: 'normal', 19 | 20 | // font weight for bold characters: 'normal' or 'bold' 21 | fontWeightBold: 'bold', 22 | 23 | // line height as a relative unit 24 | lineHeight: 1, 25 | 26 | // letter spacing as a relative unit 27 | letterSpacing: 0, 28 | 29 | // terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) 30 | cursorColor: 'rgba(248,28,229,0.8)', 31 | 32 | // terminal text color under BLOCK cursor 33 | cursorAccentColor: '#000', 34 | 35 | // `'BEAM'` for |, `'UNDERLINE'` for _, `'BLOCK'` for █ 36 | cursorShape: 'BLOCK', 37 | 38 | // set to `true` (without backticks and without quotes) for blinking cursor 39 | cursorBlink: false, 40 | 41 | // color of the text 42 | foregroundColor: '#fff', 43 | 44 | // terminal background color 45 | // opacity is only supported on macOS 46 | backgroundColor: '#000', 47 | 48 | // terminal selection color 49 | selectionColor: 'rgba(248,28,229,0.3)', 50 | 51 | // border color (window, tabs) 52 | borderColor: '#333', 53 | 54 | // custom CSS to embed in the main window 55 | css: '', 56 | 57 | // custom CSS to embed in the terminal window 58 | termCSS: '', 59 | 60 | // if you're using a Linux setup which show native menus, set to false 61 | // default: `true` on Linux, `true` on Windows, ignored on macOS 62 | showHamburgerMenu: '', 63 | 64 | // set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons 65 | // additionally, set to `'left'` if you want them on the left, like in Ubuntu 66 | // default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS 67 | showWindowControls: '', 68 | 69 | // custom padding (CSS format, i.e.: `top right bottom left`) 70 | padding: '12px 14px', 71 | 72 | // the full list. if you're going to provide the full color palette, 73 | // including the 6 x 6 color cubes and the grayscale map, just provide 74 | // an array here instead of a color map object 75 | colors: { 76 | black: '#000000', 77 | red: '#C51E14', 78 | green: '#1DC121', 79 | yellow: '#C7C329', 80 | blue: '#0A2FC4', 81 | magenta: '#C839C5', 82 | cyan: '#20C5C6', 83 | white: '#C7C7C7', 84 | lightBlack: '#686868', 85 | lightRed: '#FD6F6B', 86 | lightGreen: '#67F86F', 87 | lightYellow: '#FFFA72', 88 | lightBlue: '#6A76FB', 89 | lightMagenta: '#FD7CFC', 90 | lightCyan: '#68FDFE', 91 | lightWhite: '#FFFFFF', 92 | }, 93 | 94 | // the shell to run when spawning a new session (i.e. /usr/local/bin/fish) 95 | // if left empty, your system's login shell will be used by default 96 | // 97 | // Windows 98 | // - Make sure to use a full path if the binary name doesn't work 99 | // - Remove `--login` in shellArgs 100 | // 101 | // Bash on Windows 102 | // - Example: `C:\\Windows\\System32\\bash.exe` 103 | // 104 | // PowerShell on Windows 105 | // - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe` 106 | shell: '', 107 | 108 | // for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`) 109 | // by default `['--login']` will be used 110 | shellArgs: ['--login'], 111 | 112 | // for environment variables 113 | env: {}, 114 | 115 | // set to `false` for no bell 116 | bell: 'SOUND', 117 | 118 | // if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard 119 | copyOnSelect: false, 120 | 121 | // if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH 122 | defaultSSHApp: true, 123 | 124 | // if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no 125 | // selection is present (`true` by default on Windows and disables the context menu feature) 126 | quickEdit: false, 127 | 128 | // choose either `'vertical'`, if you want the column mode when Option key is hold during selection (Default) 129 | // or `'force'`, if you want to force selection regardless of whether the terminal is in mouse events mode 130 | // (inside tmux or vim with mouse mode enabled for example). 131 | macOptionSelectionMode: 'vertical', 132 | 133 | // URL to custom bell 134 | // bellSoundURL: 'http://example.com/bell.mp3', 135 | 136 | // Whether to use the WebGL renderer. Set it to false to use canvas-based 137 | // rendering (slower, but supports transparent backgrounds) 138 | webGLRenderer: true, 139 | 140 | // for advanced config flags please refer to https://hyper.is/#cfg 141 | }, 142 | 143 | // a list of plugins to fetch and install from npm 144 | // format: [@org/]project[#version] 145 | // examples: 146 | // `hyperpower` 147 | // `@company/project` 148 | // `project#1.0.1` 149 | plugins: ["hyper-snazzy", "hyperpower"], 150 | 151 | // in development, you can create a directory under 152 | // `~/.hyper_plugins/local/` and include it here 153 | // to load it and avoid it being `npm install`ed 154 | localPlugins: [], 155 | 156 | keymaps: { 157 | // Example 158 | // 'window:devtools': 'cmd+alt+o', 159 | }, 160 | }; 161 | --------------------------------------------------------------------------------