From 4ceb6d89143c99d1e60bec264d59dd8a7c257327 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Thu, 22 Aug 2019 11:29:13 +0200 Subject: Introduce allow-common-devel.inc --- etc/allow-common-devel.inc | 13 +++++++++++++ etc/atom.profile | 14 +++----------- etc/brackets.profile | 10 +++------- etc/code.profile | 11 +++-------- etc/geany.profile | 9 +++------ etc/gedit.profile | 9 +++------ etc/gnome-builder.profile | 10 ++-------- etc/templates/profile.template | 3 +++ 8 files changed, 33 insertions(+), 46 deletions(-) create mode 100644 etc/allow-common-devel.inc (limited to 'etc') diff --git a/etc/allow-common-devel.inc b/etc/allow-common-devel.inc new file mode 100644 index 000000000..da1cdb3d3 --- /dev/null +++ b/etc/allow-common-devel.inc @@ -0,0 +1,13 @@ +# Rust +noblacklist ${HOME}/.cargo/config +noblacklist ${HOME}/.cargo/registry + +# Git +noblacklist ${HOME}/.config/git +noblacklist ${HOME}/.gitconfig +noblacklist ${HOME}/.git-credentials + +# Python +noblacklist ${HOME}/.python-history +noblacklist ${HOME}/.python_history +noblacklist ${HOME}/.pythonhist diff --git a/etc/atom.profile b/etc/atom.profile index 4bb37552b..b9cb49d08 100644 --- a/etc/atom.profile +++ b/etc/atom.profile @@ -8,17 +8,9 @@ include globals.local noblacklist ${HOME}/.atom noblacklist ${HOME}/.config/Atom -# allow rust -noblacklist ${HOME}/.cargo/config -noblacklist ${HOME}/.cargo/registry -# allow git config files -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -# allow python dev files -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist + +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc include disable-exec.inc diff --git a/etc/brackets.profile b/etc/brackets.profile index 3e157d841..b7d560bbc 100644 --- a/etc/brackets.profile +++ b/etc/brackets.profile @@ -8,13 +8,9 @@ include globals.local noblacklist ${HOME}/.config/Brackets #noblacklist /opt/brackets/ #noblacklist /opt/google/ -# Uncomment the next two lines if you are developing rust. -# or put it in your brackets.local -#noblacklist ${HOME}/.cargo/config -#noblacklist ${HOME}/.cargo/registry -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials + +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc include disable-passwdmgr.inc diff --git a/etc/code.profile b/etc/code.profile index 76320d56b..7ac4e1619 100644 --- a/etc/code.profile +++ b/etc/code.profile @@ -5,19 +5,14 @@ include code.local # Persistent global definitions include globals.local -noblacklist ${HOME}/.cargo/config -noblacklist ${HOME}/.cargo/registry noblacklist ${HOME}/.config/Code noblacklist ${HOME}/.config/Code - OSS -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist noblacklist ${HOME}/.vscode noblacklist ${HOME}/.vscode-oss +# Allows files commonly used by IDEs +include allow-common-devel.inc + include disable-common.inc include disable-passwdmgr.inc include disable-programs.inc diff --git a/etc/geany.profile b/etc/geany.profile index 53a718d63..31599e32a 100644 --- a/etc/geany.profile +++ b/etc/geany.profile @@ -7,12 +7,9 @@ include geany.local include globals.local noblacklist ${HOME}/.config/geany -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist + +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc include disable-passwdmgr.inc diff --git a/etc/gedit.profile b/etc/gedit.profile index 763d33eb1..837396654 100644 --- a/etc/gedit.profile +++ b/etc/gedit.profile @@ -8,12 +8,9 @@ include globals.local noblacklist ${HOME}/.config/enchant noblacklist ${HOME}/.config/gedit -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist + +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc # include disable-devel.inc diff --git a/etc/gnome-builder.profile b/etc/gnome-builder.profile index 46281af6e..ab2ca183b 100644 --- a/etc/gnome-builder.profile +++ b/etc/gnome-builder.profile @@ -6,14 +6,8 @@ include gnome-builder.local # Persistent global definitions include globals.local -noblacklist ${HOME}/.cargo/config -noblacklist ${HOME}/.cargo/registry -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc include disable-passwdmgr.inc diff --git a/etc/templates/profile.template b/etc/templates/profile.template index 2fc5c3ef1..0d67e222f 100644 --- a/etc/templates/profile.template +++ b/etc/templates/profile.template @@ -87,6 +87,9 @@ include globals.local # Allow lua (blacklisted by disable-interpreters.inc) #include allow-lua.inc +# Allows files commonly used by IDEs +#include allow-common-devel.inc + #include disable-common.inc #include disable-devel.inc #include disable-exec.inc -- cgit v1.2.3-54-g00ecf From 72a1472258164e4422425c4a4f1f27b1c5132be2 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Thu, 22 Aug 2019 13:33:30 +0200 Subject: add allow-common-devel to more profiles --- etc/allow-common-devel.inc | 4 ++++ etc/android-studio.profile | 8 +++----- etc/aosp.profile | 8 +++----- etc/emacs.profile | 6 +++--- etc/idea.sh.profile | 8 +++----- etc/pluma.profile | 6 +++--- etc/pycharm-community.profile | 6 +++--- etc/vim.profile | 6 +++--- etc/webstorm.profile | 7 +++---- 9 files changed, 28 insertions(+), 31 deletions(-) (limited to 'etc') diff --git a/etc/allow-common-devel.inc b/etc/allow-common-devel.inc index da1cdb3d3..1d794462c 100644 --- a/etc/allow-common-devel.inc +++ b/etc/allow-common-devel.inc @@ -11,3 +11,7 @@ noblacklist ${HOME}/.git-credentials noblacklist ${HOME}/.python-history noblacklist ${HOME}/.python_history noblacklist ${HOME}/.pythonhist + +# Java +noblacklist ${HOME}/.gradle +noblacklist ${HOME}/.java diff --git a/etc/android-studio.profile b/etc/android-studio.profile index ff7fb6711..2e4e564dd 100644 --- a/etc/android-studio.profile +++ b/etc/android-studio.profile @@ -7,17 +7,15 @@ include globals.local noblacklist ${HOME}/.AndroidStudio* noblacklist ${HOME}/.android -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.gradle noblacklist ${HOME}/.jack-server noblacklist ${HOME}/.jack-settings -noblacklist ${HOME}/.java noblacklist ${HOME}/.local/share/JetBrains noblacklist ${HOME}/.ssh noblacklist ${HOME}/.tooling +# Allows files commonly used by IDEs +include allow-common-devel.inc + include disable-common.inc include disable-passwdmgr.inc include disable-programs.inc diff --git a/etc/aosp.profile b/etc/aosp.profile index 701bf4733..a5b1ba9f1 100644 --- a/etc/aosp.profile +++ b/etc/aosp.profile @@ -7,18 +7,16 @@ include globals.local noblacklist ${HOME}/.android noblacklist ${HOME}/.bash_history -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.gradle noblacklist ${HOME}/.jack-server noblacklist ${HOME}/.jack-settings -noblacklist ${HOME}/.java noblacklist ${HOME}/.repo_.gitconfig.json noblacklist ${HOME}/.repoconfig noblacklist ${HOME}/.ssh noblacklist ${HOME}/.tooling +# Allows files commonly used by IDEs +include allow-common-devel.inc + include disable-common.inc include disable-passwdmgr.inc include disable-programs.inc diff --git a/etc/emacs.profile b/etc/emacs.profile index 95a4dd6b2..071a9f5d2 100644 --- a/etc/emacs.profile +++ b/etc/emacs.profile @@ -11,9 +11,9 @@ noblacklist ${HOME}/.emacs.d # if you need gpg uncomment the following line # or put it into your emacs.local #noblacklist ${HOME}/.gnupg -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist + +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc include disable-passwdmgr.inc diff --git a/etc/idea.sh.profile b/etc/idea.sh.profile index 4f3047e08..a7d0d531f 100644 --- a/etc/idea.sh.profile +++ b/etc/idea.sh.profile @@ -7,17 +7,15 @@ include globals.local noblacklist ${HOME}/.IdeaIC* noblacklist ${HOME}/.android -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.gradle noblacklist ${HOME}/.jack-server noblacklist ${HOME}/.jack-settings -noblacklist ${HOME}/.java noblacklist ${HOME}/.local/share/JetBrains noblacklist ${HOME}/.ssh noblacklist ${HOME}/.tooling +# Allows files commonly used by IDEs +include allow-common-devel.inc + include disable-common.inc include disable-passwdmgr.inc include disable-programs.inc diff --git a/etc/pluma.profile b/etc/pluma.profile index 4c32c2979..dadfcc44e 100644 --- a/etc/pluma.profile +++ b/etc/pluma.profile @@ -8,9 +8,9 @@ include globals.local noblacklist ${HOME}/.config/enchant noblacklist ${HOME}/.config/pluma -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist + +# Allows files commonly used by IDEs +include allow-common-devel.inc include disable-common.inc include disable-devel.inc diff --git a/etc/pycharm-community.profile b/etc/pycharm-community.profile index e1d55c89e..9ee426a95 100644 --- a/etc/pycharm-community.profile +++ b/etc/pycharm-community.profile @@ -6,13 +6,13 @@ include pycharm-community.local include globals.local noblacklist ${HOME}/.PyCharmCE* -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist # Allow java (blacklisted by disable-devel.inc) include allow-java.inc +# Allows files commonly used by IDEs +include allow-common-devel.inc + include disable-common.inc include disable-devel.inc include disable-passwdmgr.inc diff --git a/etc/vim.profile b/etc/vim.profile index 957dc91aa..d27a9a633 100644 --- a/etc/vim.profile +++ b/etc/vim.profile @@ -6,13 +6,13 @@ include vim.local # Persistent global definitions include globals.local -noblacklist ${HOME}/.python-history -noblacklist ${HOME}/.python_history -noblacklist ${HOME}/.pythonhist noblacklist ${HOME}/.vim noblacklist ${HOME}/.viminfo noblacklist ${HOME}/.vimrc +# Allows files commonly used by IDEs +include allow-common-devel.inc + include disable-common.inc include disable-passwdmgr.inc include disable-programs.inc diff --git a/etc/webstorm.profile b/etc/webstorm.profile index e820bae00..fc4e8e571 100644 --- a/etc/webstorm.profile +++ b/etc/webstorm.profile @@ -7,14 +7,13 @@ include globals.local noblacklist ${HOME}/.WebStorm* noblacklist ${HOME}/.android -noblacklist ${HOME}/.config/git -noblacklist ${HOME}/.gitconfig -noblacklist ${HOME}/.git-credentials -noblacklist ${HOME}/.gradle noblacklist ${HOME}/.local/share/JetBrains noblacklist ${HOME}/.ssh noblacklist ${HOME}/.tooling +# Allows files commonly used by IDEs +include allow-common-devel.inc + noblacklist ${PATH}/node noblacklist ${HOME}/.nvm -- cgit v1.2.3-54-g00ecf