- Install cmder_mini (msysgit is already installed, so no need for full version)
- In Cmder, open settings:
Win + Alt + P
- Under Startup > Tasks, add a task called
{bash}
with the following settings:- Task parameters (set icon):
- For Cmder icon:
/icon "%CMDER_ROOT%\cmder.exe"
- For Git icon:
/icon "C:\Program Files (x86)\Git\etc\git.ico"
- For Cmder icon:
- Commands (open Git's bash shell):
- Task parameters (set icon):
"C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
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
netstat -ano | findstr :<yourPortNumber> | |
taskkill /F /PID <typeyourPIDhere> |
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
# Copied and modified from https://dev.to/cravacuore/comment/i7g0 | |
# Inspired by making a mixture the following themes: | |
# robbyrussell + arrow + lambda | |
# changing some colors and elements positions | |
local ret_status="%(?:%{$fg_bold[grey]%}λ :%{$fg_bold[red]%} λ )" | |
# ellipsis https://github.com/ohmyzsh/ohmyzsh/issues/7525#issuecomment-456074298 | |
PROMPT=' ${ret_status}%{$fg[magenta]%}%c %{$fg[black]%}git:(%{$fg[cyan]%}%30>...>$(git_current_branch)%>>%{$fg[black]%}$(parse_git_dirty)%{$reset_color%} ➤ %{$reset_color%}' |
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
function New-Symlink { | |
<# | |
.SYNOPSIS | |
Creates a symbolic link. | |
#> | |
param ( | |
[Parameter(Position=0, Mandatory=$true)] | |
[string] $Link, | |
[Parameter(Position=1, Mandatory=$true)] | |
[string] $Target |
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
# adapted from https://stackoverflow.com/a/28042939 | |
branch_name=$(git symbolic-ref --short HEAD) | |
retcode=$? | |
# Only push if branch_name was found (my be empty if in detached head state) | |
if [ $retcode -eq 0 ] ; then | |
#Only push if branch_name does not end with the non-push suffix | |
if [[ $branch_name != 'dev' && $branch_name != 'master' ]] ; then | |
echo |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
import React, { useContext } from "react"; | |
import Dashboard from "./Dashboard"; | |
import Login from "./Login"; | |
import AppContext from "./AppContext"; | |
export default () => { | |
const { machine, error } = useContext(AppContext); | |
console.log("executing App component..."); | |
return ( |
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
antialias { | |
-moz-osx-font-smoothing: grayscale, | |
-webkit-font-smoothing: antialiased, | |
} |