Last active
May 2, 2020 14:23
-
-
Save stevemk14ebr/e7781d400b05b3da5b87a2593c74760e to your computer and use it in GitHub Desktop.
This file contains 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
# Windows powerline fonts install (OR https://github.com/microsoft/cascadia-code/releases?WT.mc_id=-blog-scottha <<- PREFER THIS) | |
git clone https://github.com/powerline/fonts.git | |
cd fonts | |
Set-ExecutionPolicy Bypass | |
./install.ps1 | |
Set-ExecutionPolicy Default | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install zsh curl git | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting | |
# git status is slow for big repos, disable by default | |
git config --global --add oh-my-zsh.hide-status 1 | |
# START WINDOWS TERMINAL CONFIG SETTINGS | |
# https://terminalsplash.com/ | |
// This file was initially generated by Windows Terminal 0.11.1191.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
// This file was initially generated by Windows Terminal 0.11.1191.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}", | |
// You can add more global application settings here. | |
// To learn more about global settings, visit https://aka.ms/terminal-global-settings | |
// If enabled, selections are automatically copied to your clipboard. | |
"copyOnSelect": false, | |
// If enabled, formatted data is also copied to your clipboard | |
"copyFormatting": false, | |
// A profile specifies a command to execute paired with information about how it should look and feel. | |
// Each one of them will appear in the 'New Tab' dropdown, | |
// and can be invoked from the commandline with `wt.exe -p xxx` | |
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings | |
"profiles": { | |
"defaults": { | |
// Put settings here that you want to apply to all profiles. | |
}, | |
"list": [ | |
{ | |
// Make changes here to the powershell.exe profile. | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", | |
"commandline": "powershell.exe", | |
"fontFace": "Cascadia Mono PL", | |
"hidden": false | |
}, | |
{ | |
// Make changes here to the cmd.exe profile. | |
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"name": "Command Prompt", | |
"commandline": "cmd.exe", | |
"fontFace": "Cascadia Mono PL", | |
"hidden": false | |
}, | |
{ | |
"guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}", | |
"hidden": false, | |
"name": "Debian", | |
"source": "Windows.Terminal.Wsl", | |
"fontFace": "Cascadia Mono PL", | |
"cursorColor": "#ffc600", | |
"colorScheme": "Cobalt2" | |
}, | |
{ | |
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", | |
"hidden": false, | |
"name": "Azure Cloud Shell", | |
"fontFace": "Cascadia Mono PL", | |
"source": "Windows.Terminal.Azure" | |
} | |
] | |
}, | |
// Add custom color schemes to this array. | |
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes | |
"schemes": [ | |
{ | |
"background": "#193549", | |
"black": "#000000", | |
"blue": "#1478DB", | |
"brightBlack": "#808080", | |
"brightBlue": "#1478DB", | |
"brightCyan": "#00ffff", | |
"brightGreen": "#33ff00", | |
"brightPurple": "#cc00ff", | |
"brightRed": "#ff0000", | |
"brightWhite": "#ffffff", | |
"brightYellow": "#ffff00", | |
"cyan": "#00c5c7", | |
"foreground": "#c7c7c7", | |
"green": "#3AD900", | |
"name": "Cobalt2", | |
"purple": "#ff2c70", | |
"red": "#ff2600", | |
"white": "#c7c7c7", | |
"yellow": "#ffc600" | |
} | |
], | |
// Add custom keybindings to this array. | |
// To unbind a key combination from your defaults.json, set the command to "unbound". | |
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings | |
"keybindings": [ | |
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. | |
// These two lines additionally bind them to Ctrl+C and Ctrl+V. | |
// To learn more about selection, visit https://aka.ms/terminal-selection | |
{ | |
"command": { | |
"action": "copy", | |
"singleLine": false | |
}, | |
"keys": "ctrl+c" | |
}, | |
{ | |
"command": "paste", | |
"keys": "ctrl+v" | |
}, | |
// Press Ctrl+Shift+F to open the search box | |
{ | |
"command": "find", | |
"keys": "ctrl+shift+f" | |
}, | |
// Press Alt+Shift+D to open a new pane. | |
// - "split": "auto" makes this pane open in the direction that provides the most surface area. | |
// - "splitMode": "duplicate" makes the new pane use the focused pane's profile. | |
// To learn more about panes, visit https://aka.ms/terminal-panes | |
{ | |
"command": { | |
"action": "splitPane", | |
"split": "auto", | |
"splitMode": "duplicate" | |
}, | |
"keys": "alt+shift+d" | |
} | |
] | |
} | |
# START .zshrc | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/steve/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="agnoster" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# 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 colors in ls. | |
# DISABLE_LS_COLORS="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 zsh-autosuggestions zsh-syntax-highlighting) | |
ZSH_DISABLE_COMPFIX=true | |
# disable dircolors backgrounds | |
eval "$(dircolors -p | \ | |
sed 's/ 4[0-9];/ 01;/; s/;4[0-9];/;01;/g; s/;4[0-9] /;01 /' | \ | |
dircolors /dev/stdin)" | |
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" | |
# 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 zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
# disable username in prompt | |
prompt_context() {} | |
# WSL permissions fix | |
alias ls='ls $@ 2> /dev/null --color=auto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment