瀏覽代碼

pathappend improvement

pull/1/head
父節點
當前提交
ddc42138b2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      templates/path/pathappend.service.j2

+ 1
- 1
templates/path/pathappend.service.j2 查看文件

@@ -5,7 +5,7 @@ Description=append home directory paths to PATH environment variable

[Service]
Type=oneshot
ExecStart=fish -c "set -x PATH ~/bin ~/.local/bin $PATH; systemctl --user import-environment PATH"
ExecStart=fish -c "for np in ~/.local/bin ~/bin; if not contains $np $PATH; set -x PATH $np $PATH; end; end; systemctl --user import-environment PATH"

[Install]
WantedBy=default.target