Category: Windows 10

Add Git Bash (or other) to Windows Terminal

Add Git Bash (or other) to Windows Terminal

This is my quick, 1 minute, method to add ‘Git for Windows’ bashto Windows Terminal. But you can use the same process for any other command line.

  1. Either use the shortcut CTRL+, or the menu to open the settings.json
  1. This will open the settings.json file in you default editor.
  2. Now generate a new GUID by either
    1. go to https://www.guidgenerator.com/online-guid-generator.aspx or
    2. Enter [guid]::NewGuid() into the PowerShell terminal window
  1. Add the following json to the bottom of the “Profile”:”List” section
,
{
  "guid": "{REPLACE THE GUID HERE WITH YOUR ONE}",
  "hidden": false,
  "name": "Git bash",
  "icon": "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
  "commandline": "C:\\Program Files\\Git\\bin\\bash.exe",
  "colorScheme": "One Half Dark",
  "startingDirectory": "%USERPROFILE%"
}
  1. Remember to replace the GUID with the one you created earlier.
  2. Save the file and you should now see the option in the drop down.

If you want this to be your default terminal, then just add the GUID to the “defaultProfile” setting in the json file and save.

I used a simple colour scheme to distinguish this terminal from the other. I also changed the PowerShell one by adding

"colorScheme": "Campbell Powershell"

to that profile to bring back the good ol’ blue background 😉

This is just the tip of the iceberg. You can customise Windows Terminal to your hearts delight.

For more details see the full Windows Terminal docs here https://docs.microsoft.com/en-gb/windows/terminal/

Keeping your managed PC from locking all the time

I know you shouldn’t try and subvert your companies internal security policies, but sometimes the security department just don’t seem to understand the consequences of what they do…especially when using multiple computers simultaneously!

The following script essentially presses the inaccessible F15 key at regular time intervals to ensure the screen timeout is reset and you avoid locking out.

Continue reading “Keeping your managed PC from locking all the time”

Windows 10 Virtual Desktops – Quick guide and shortcut keys

When you have dozens of apps open and working across different tasks, then Windows 10 Virtual Desktops can help. By using virtual desktops you can open or move the right apps and browsers for a particular task to it’s own desktop.

Continue reading “Windows 10 Virtual Desktops – Quick guide and shortcut keys”

Fix for OneDrive high CPU

If your OneDrive seems to be constantly running at a higher than expected CPU (anything above 10%), then this fix may help. It worked for me. CPU settled down after a while.

To see what’s eating your CPU, press CTRL+SHIFT+ESC. On the ‘Process’ tab sort the ‘CPU’ column to show the largest number at the top. If you see OneDrive up at the top most of the time, then it probably needs this reset. It should be pretty much on 0% once all is synced.

All your account settings and files will remain in tact. Make sure you have installed the latest version too ( https://onedrive.live.com/about/en-us/download/ ).

  1. Press the Windows key + R to open the Run Window.
  2. In the Run Window enter the following:
    %localappdata%\Microsoft\OneDrive\onedrive.exe /reset
  3. Click OK. The OneDrive system tray icon on the desktop should disappear and re-appear after a minute or two.
  4. If the OneDrive system tray icon does not re-appear after a few minutes, do the following. In the Run Window Enter:
    %localappdata%\Microsoft\OneDrive\onedrive.exe

SSMS in High-DPI Displays: How to Stop the Madness

Got a new high resolution latop with scaling and struggling to use SSMS. Here’s the fix

SSMS in High-DPI Displays: How to Stop the Madness