https://medium.com/@alllexsm/how-to-install-z-shell-zsh-on-cygwin-dd9ee380d783
https://github.com/sorin-ionescu/prezto
shell: 'D:\\cygwin64\\bin\\zsh.exe',
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
| import React from "react"; | |
| import createContext from './createContext'; | |
| const [useUserInfoContext, UserInfoProviderInternal] = createContext< | |
| string | |
| >(); | |
| export { useUserInfoContext }; | |
| export const UserInfoProvider: React.FC = ({ children }) => { |
| function paginateList<T>(list: T[], currentPage: number, totalPerPage: number) { | |
| const start = (currentPage - 1) * totalPerPage; | |
| const end = start + totalPerPage; | |
| const pageList = list.slice(start, end); | |
| return pageList; | |
| } |
| # return a value in a function | |
| function returnTrue() { | |
| echo true | |
| } | |
| # pass arguments to a function | |
| # | |
| # usage: | |
| # $ greeter "Gabriel" | |
| # > "Hello Gabriel" |
| (() => { | |
| const iframe = document.createElement('iframe') | |
| iframe.style.display = 'none' | |
| document.body.appendChild(iframe) | |
| const currentWindow = Object.getOwnPropertyNames(window) | |
| const results = currentWindow.filter(prop => !iframe.contentWindow.hasOwnProperty(prop)) | |
| console.log(results) |
| (() => { | |
| const chestButtonSelector = '.claimable-bonus__icon' | |
| if (window.clearTwitchChestInterval) { | |
| window.clearTwitchChestInterval() | |
| } | |
| const interval = setInterval(() => { | |
| const chestButton = document.querySelector(chestButtonSelector) | |
| if (chestButton) { |
https://medium.com/@alllexsm/how-to-install-z-shell-zsh-on-cygwin-dd9ee380d783
https://github.com/sorin-ionescu/prezto
shell: 'D:\\cygwin64\\bin\\zsh.exe',
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
Create a file named initInExternalTerminal.bat on cmder's root, containing the following:
@echo off
REM The following CMDER_ROOT must have the complete path to the cmder folder,
REM like "C:\Users\gabriel\Documents\Cmder"
SET CMDER_ROOT=PATH/TO/THE/CMDER/FOLDER
"%CMDER_ROOT%\vendor\init.bat"
.bat file@echo off
REM ### Below on CMDER_ROOT, substitute 'C:\Cmder' with the path to your CMDER root (the one that contains Cmder.exe) ###
SET CMDER_ROOT=C:\Cmder
"%CMDER_ROOT%\vendor\init.bat"
shellArgs, fill with an array, with the first value being: "/K", and the second being the path to the file you created above