1. 重启WSL服务

管理员打开cmd,或者Windows Terminal

  1. sc stop LxssManager
  2. sc start LxssManager

2. Oracle数据库关闭和开启

打开windows的终端,输入如下命令

关闭

  1. sqlplus /nolog
  2. SQL> connect / as sysdba
  3. SQL> shutdown immediate
  4. SQL> exit

开启

  1. sqlplus /nolog
  2. SQL> connect / as sysdba
  3. SQL> startup
  4. SQL> exit

3. Windows Terminal配置文件

  1. {
  2. "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  3. "blocks": [
  4. {
  5. "alignment": "left",
  6. "segments": [
  7. {
  8. "foreground": "#6d76a3",
  9. "properties": {
  10. "style": "folder",
  11. "template": " {{ .Path }} "
  12. },
  13. "style": "plain",
  14. "type": "path"
  15. },
  16. {
  17. "foreground": "#ffffff",
  18. "properties": {
  19. "template": "<#c23969>\u0023</><>\u0020</>"
  20. },
  21. "style": "plain",
  22. "type": "text"
  23. },
  24. {
  25. "foreground": "#ffffff",
  26. "properties": {
  27. "template": "<#c23969>\u276f</><#dbdd60>\u276f</><#b1d55e>\u276f</><>\u0020</>"
  28. },
  29. "style": "plain",
  30. "type": "text"
  31. },
  32. {
  33. "foreground": "#D0666F",
  34. "properties": {
  35. "branch_icon": "",
  36. "fetch_status": false,
  37. "template": "<#5FAAE8>git:(</>{{ .HEAD }}<#5FAAE8>)</>"
  38. },
  39. "style": "plain",
  40. "type": "git"
  41. },
  42. {
  43. "foreground": "#DCB977",
  44. "properties": {
  45. "template": " \uf119"
  46. },
  47. "style": "plain",
  48. "type": "exit"
  49. },
  50. {
  51. "foreground": "#66F68F",
  52. "properties": {
  53. "template": " {{ .CurrentDate | date .Format }} ",
  54. "time_format": "15:04"
  55. },
  56. "style": "plain",
  57. "type": "time"
  58. }
  59. ],
  60. "type": "prompt"
  61. }
  62. ],
  63. "version": 1
  64. }

效果图
image.png