首页 > 系统相关 >Linux shell system environment variables All In One

Linux shell system environment variables All In One

时间:2023-02-10 18:45:14浏览次数:45  
标签:shell false enabled variables When environment editor true docthis

Linux shell system environment variables All In One

bash / zsh

vscode terminal env

Command + Shift + P

image

demos

  1. PS1 demo

.vscode/settings.json

{
  // 自定义环境变量
  "terminal.integrated.env.osx": {
    "VSC": "vscode-demo-env"
  },
}


click check the full version: `.vscode/settings.json`
{
  "files.exclude": {
    "**/.git": true,
    "**/.DS_Store": true,
    "**/jspm_packages": true,
    "**/node_modules": true,
    "**/.zip": true,
    "**/.sh": true
  },
  "search.exclude": {
    "**/node_modules": true,
    "**/bower_components": true
  },
  "files.watcherExclude": {
    "**/.git/objects/**": true,
    "**/.git/subtree-cache/**": true,
    "**/node_modules/*/**": true
  },
  "editor.formatOnSave": false,
  "editor.formatOnPaste": false,
  "editor.renderWhitespace": "all",
  "editor.fontSize": 16,
  "editor.tabSize": 2,
  "editor.multiCursorModifier": "alt",
  "editor.wordWrap": "on",
  "editor.insertSpaces": true,
  "files.encoding": "utf8",
  // "[typescript]": {
  //     "editor.formatOnSave": false,
  //     "editor.formatOnPaste": false
  // },
  "[javascript]": {
    "editor.formatOnSave": false,
    "editor.formatOnPaste": false,
    "editor.renderWhitespace": "all",
    "editor.foldingStrategy": "indentation"
    // "editor.foldingStrategy": "auto"
  },
  "[markdown]": {
    "editor.formatOnSave": false,
    "editor.renderWhitespace": "all",
    "editor.acceptSuggestionOnEnter": "off"
  },
  "[html]": {
    "editor.formatOnSave": false,
    "editor.formatOnPaste": false,
    "editor.renderWhitespace": "all",
    "editor.acceptSuggestionOnEnter": "off"
  },
  "files.associations": {
    "*.jsx": "javascriptreact",
    "*.js": "javascriptreact"
  },
  "editor.snippetSuggestions": "top",
  // When enabled, typing /** triggers documentation automatically.
  "docthis.automaticForBlockComments": true,
  // When enabled, type information is added to comment tags.
  "docthis.includeTypes": true,
  // When enabled, memberOf information is added to comment tags on class members.
  "docthis.includeMemberOfOnClassMembers": true,
  // When enabled, memberOf information is added to comment tags on interface members.
  "docthis.includeMemberOfOnInterfaceMembers": true,
  // When enabled, JSDoc comments for functions and methods will include @description.
  "docthis.includeDescriptionTag": true,
  // When enabled, hungarian notation will be used as a type hint.
  "docthis.enableHungarianNotationEvaluation": true,
  // When enabled, will use names of params & methods as type hints.
  "docthis.inferTypesFromNames": true,
  // When enabled, will add the @author tag.
  "docthis.includeAuthorTag": true,
  // When docthis.includeAuthorTag is enabled, will add @author tag with this value.
  "docthis.authorName": "xgqfrms",
  // HTML & overwrite User settings.json
  "html.format.extraLiners": "",
  "html.format.enable": false,
  "html.format.contentUnformatted": "body, div, section, script, pre,code,textarea",
  "terminal.integrated.env.osx": {
    "VSC": "vscode-demo-env"
  },
}

.zshrc


if["$VSC" = "vscode-demo-env"]; then
  PS1="\S ";
fi

image

image

image

image

https://egghead.io/lessons/vs-code-customize-the-ps1-bash-zsh-command-prompt-in-vs-code-with-environment-variables

(

标签:shell,false,enabled,variables,When,environment,editor,true,docthis
From: https://www.cnblogs.com/xgqfrms/p/17110022.html

相关文章

  • linux篇-xshell连接突然报Connection closed by foreign host.
    1问题描述报错Connectionclosedbyforeignhost.Disconnectedfromremotehost(yaoGS)at155513.2登入虚拟机在linux系统操作中,经常需要连接其他的主机,连接其他主机......
  • Linux系列 -- XShell破解版安装教程
    原:https://www.cnblogs.com/bowendown/p/11937159.html#一xshell6商业版安装教程目录一、xshell6商业版安装教程1.为什么要用xshell2.打开Keygen软件获取注册码3......
  • mysql ERROR 1682 (HY000): Native table 'performance_schema'.'global_variables' h
    mysql数据库出现这个问题 解决办法mysql_upgrade-uroot-p  修复完成之后回复正常 ......
  • Linux export environment variables & dotenv read .env file All In One
    Linuxexportenvironmentvariables&dotenvread.envfileAllInOneNode.jsprocess.envoverridebugterminalcommandoverride.envfilebugwhythetermi......
  • 安卓常用shell命令大全
    前言这篇笔记用来收集在日常开发中所用到的安卓adbshell命令,参照了一些大佬的再加上我自己平时用到的整理在了一块儿,感谢无私共享的大佬们。将会持续更新,欢迎收藏~一、......
  • 【转载】ldd -- shell 脚本
    ldd命令打印程序和库的共享库依赖项。注意:ldd不是一个可执行程序,而只是一个Shell脚本。ldd能够显示可执行模块的dependency,其原理是通过设置一系列的环境变量,如下:LD......
  • 100 行 shell 写个 Docker
    作者:vivo互联网运维团队-HouDengfeng本文主要介绍使用shell实现一个简易的Docker。一、目的在初接触Docker的时候,我们必须要了解的几个概念就是Cgroup、Namespace、RootF......
  • shell 单个循环多个变量
    使用shell批量生成Prometheus的自动发现文件。文件aly@Fuck:/tmp$catfile_a192.168.96.229:39100192.168.96.119:39100文件bly@Fuck:/tmp$catfile_bk8s......
  • shell 并行执行
    目录shell并行执行串行改为并行并行-等待模式利用命名管道来做任务队列文档转自shell并行执行串行改为并行这是常规串行例子>foriin`seq110`dosleep1;......
  • 火爆全网的全自动getshell工具
    火爆全网的全自动getshell工具,是一款快速方便进行webshell扫描的工具,不同于以前的getshell批量工具,它根据内置常见的exp漏洞、市面较的50多种exp,更好的检测网站漏洞、只要......