Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.
The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.
For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.
- Installing and setting up cmder
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
| tmux | |
| Create a session | |
| tmux new-session -s session_name | |
| Reconnect to session | |
| tmux attach-session -t session_name | |
| Detach from a session | |
| CTRL+b |
I hereby claim:
- I am jamiemcconnell on github.
- I am jamiemcconnell (https://keybase.io/jamiemcconnell) on keybase.
- I have a public key ASDXMeOBXMglOFsrV98SoqwIBs1kFfruvC13oswfFB_8Gwo
To claim this, I am signing this object:
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
| # Base our container on an existing Docker Image, view its configuration here: http://bit.ly/2h7SHaO | |
| FROM httpd:2.4.18 | |
| MAINTAINER Jamie McConnell <[email protected]> | |
| # This is a directory that you can "mount" your code into | |
| VOLUME /var/www/html | |
| # We need to expose a port on the container for us to view whatever Apache is hosting for us | |
| EXPOSE 80 |
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
| // Load our required packages | |
| // | |
| const webpack = require(‘webpack’), | |
| path = require(‘path’), | |
| extractTextPlugin = require(‘extract-text-webpack-plugin’), | |
| htmlWebpackPlugin = require(‘html-webpack-plugin’); |
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
| #!/usr/bin/env ruby | |
| require 'aws-sdk' | |
| #require 'pry' | |
| #require 'awesome_print' | |
| require 'domainatrix' | |
| # ------------------------------------------------------------------------------ | |
| # Credentials | |
| # ------------------------------------------------------------------------------ |
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
| #!/bin/bash | |
| /usr/bin/sed -i "s/upstreamServerPlaceholder/${UPSTREAM_SERVER}/" /etc/nginx/conf.d/server.conf | |
| /usr/bin/sed -i "s/serverNamePlaceholder/${SERVER_NAME}/" /etc/nginx/conf.d/server.conf | |
| openssl req -new -newkey rsa:4096 -days 1095 -nodes -x509 -subj "/C=GB/ST=Thera/L=Atlantis/O=Operations/CN=${SSL_CERT}" -keyout /ssl.key -out /ssl.crt |
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
| upstream frontend { | |
| server upstreamServerPlaceholder; | |
| } | |
| server { | |
| listen 80; | |
| listen 443; | |
| server_name serverNamePlaceholder; |
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
| # Will remove line 6 only. | |
| sed -i '6d' ~/.ssh/known_hosts |
NewerOlder