Skip to content

Instantly share code, notes, and snippets.

@Julien00859
Created August 5, 2016 23:22
Show Gist options
  • Save Julien00859/b2ca9364740da2918925190508609068 to your computer and use it in GitHub Desktop.
Save Julien00859/b2ca9364740da2918925190508609068 to your computer and use it in GitHub Desktop.
Mes hacks du registre windows
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash]
"Extended"=""
"NoWorkingDirectory"=""
@="Ouvrir bash ici"
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
@="C:\\\\Windows\\\\system32\\\\bash.exe --init-file <(echo -n cd /mnt/; winpath=%V; echo \"${winpath,}\" | sed -r 's/[A-Z]/\\/\\0/g' | sed -r 's/\\://')"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell]
@="Ouvrir powershell ici"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
@Julien00859
Copy link
Author

Pour bash, c'est clairement un hack :p. Chaque nom de dossier doit commencer par une majuscule (et ne pas en avoir d'autres) pour fonctionner x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment