-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgit-editor-windows.sh
More file actions
executable file
·20 lines (20 loc) · 981 Bytes
/
git-editor-windows.sh
File metadata and controls
executable file
·20 lines (20 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
echo You need to uncomment and edit a set of instructions corresponding to the editor of your choice.
echo Check README.md for details.
#
# === Windows and git for Windows
#git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin '$*'"
#
#git config --global core.editor "'C:/Program Files/emacs/bin/emacsclient.exe'"
#
#git config --global core.editor "'~/AppData/Local/Programs/Microsoft VS Code/code.exe' --wait"
#
#git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
#
# === Windows gitbash (if nano is installed along with git)
#git config --global core.editor "nano"
#
# === WSL (Windows Subsystem Linux). Requires Windows version of VS Code installed. Replace USERNAME as appropriate.
#echo "alias vscode='/mnt/c/Users/USERNAME/AppData/Local/Programs/Microsoft\ VS\ Code/Code.exe'" >> $HOME/.bashrc
#git config --global core.editor "vscode --wait"
#
git config --global -e