xshaun's NoteBook

What makes the desert beautiful is that somewhere it hides a well.

Follow me on GitHub

How to clean caches and configuration on Outlook

  1. rm -rf ~/Library/Containers/com.microsoft.outlook.profilemanager
  2. rm -rf ~/Library/Containers/com.microsoft.Outlook/
  3. rm -rf ~/Library/Group\ Containers/UBF8T346G9.Office/Outlook/

How to fix issues on Keys of Page Up/Down + Home/End in Mac Terminal.

in Terminal -> Preferences -> Keyboard

Key Recommended Escape Sequence Other possible sequences you can try if the recommended doesn’t work for you
Home \033OH \033[1~ \033[H \001
End \033OF \033[4~ \033[F \005
Page Up \033[5~  
Page Down \033[6~  

From https://fplanque.com/dev/mac/mac-osx-terminal-page-up-down-home-end-of-line

How to fix Home/End keys on Mac

  1. mkdir ~/Library/KeyBindings/
  2. vim ~/Library/KeyBindings/DefaultKeyBinding.dict
	{
       "\UF729"   = moveToLeftEndOfLine:; // home
       "\UF72B"   = moveToRightEndOfLine:; // end
       "$\UF729"  = moveToBeginningOfLineAndModifySelection:; // shift-home
       "$\UF72B"  = moveToEndOfLineAndModifySelection:; // shift-end
    
       "@\UF700"  = moveUp:;  //super-up
       "@\UF701"  = moveDown:;  //super-down
       "@\UF702"  = moveWordLeft:;  //super-left
       "@\UF703"  = moveWordRight:;  //super-right
   
       "@$\UF700" = moveUpAndModifySelection:;  // super-shift-up
       "@$\UF701" = moveDownAndModifySelection:;  // super-shift-down
       "@$\UF702" = moveWordLeftAndModifySelection:;  // super-shift-left
       "@$\UF703" = moveWordRightAndModifySelection:;  // super-shift-right
   
       "@\UF728"  = deleteWordForward:;  // super-delete
       "@\U7F"    = deleteWordBackward:;  // super-backspace
   }

How to delete Relocated Items/Security/usr/X11R6 after Catallina upgrade due to the conflication of XQuartz

  1. start up (restart) Mac
  2. Immediately hold down the command+R keys to boot into recovery mode
  3. Click the Utilities menu and select Terminal (on the top)
  4. Type csrutil disable and close Terminal
  5. Restart Mac and Delete the files and Restart again.
  6. Immediately hold down the command+R keys to boot into recovery mode
  7. Click the Utilities menu and select Terminal (on the top)
  8. Type csrutil enable and close Terminal
  9. Restart Mac

GO-BACK     UP-LEVEL TOP