You can add the gcd script to your local bin path or you can add the followin snippet to your bash .profile or zsh .zshrc file.
function gcd {
REPO=$1
CLONEPATH=$2
if [ -z $CLONEPATH ]; thenI recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.
It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.
This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.
These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,
| // returns a Promise which fulfills with the result of a shell command | |
| // rejects with stderr | |
| function run(command) { | |
| return new Promise((fulfill, reject) => { | |
| exec(command, (err, stdout, stderr) => { | |
| if (err) { | |
| reject(err); | |
| return; | |
| } |
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.
| # output all the colour combinations for text/background | |
| # https://stackoverflow.com/questions/20541456/list-of-all-colors-available-for-powershell/41954792#41954792 | |
| $colors = [enum]::GetValues([System.ConsoleColor]) | |
| Foreach ($bgcolor in $colors){ | |
| Foreach ($fgcolor in $colors) { Write-Host "$fgcolor|" -ForegroundColor $fgcolor -BackgroundColor $bgcolor -NoNewLine } | |
| Write-Host " on $bgcolor" | |
| } |
| # from https://stackoverflow.com/questions/2180270/check-if-current-directory-is-a-git-repository | |
| [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1 |
| import React, { Component } from 'react'; | |
| import './App.css'; | |
| class LoginPage extends Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| username: '', | |
| password: '', | |
| error: '', |
| .next | |
| out |
This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)
sed -E -f solver.sed input where input is a file containing the maze.
For best results, resize your terminal to match the height of the maze. To disable animations, delete the lines containing p.
The solver assumes the following:
# \nSES) and end (E)