Remove node-version switcher script
My host does no longer provide any node or npm or yarn. Project are partially migrated to shell.nix already. I still need to migrate all projects. But I'm not working to much on frontend and don't need to re compile assets to often, so no worries. Some stuff will not work anymore, e.g. coc within neovim needs nodejs. That's broken for now, but I don't care to much, not sure whether I used it at all. That will be part of neovim migration to home-manager / nix.
This commit is contained in:
parent
499067899f
commit
4c095733d7
|
@ -49,13 +49,6 @@ command=echo "$(composer --version | cut -d ' ' -f 3 | cut -d '.' -f -2)"
|
|||
interval=once
|
||||
signal=10
|
||||
|
||||
[node_version]
|
||||
label=⚛️
|
||||
command=echo "$(node --version | cut -d'.' -f1,2 | sed s/v//) 📦 $(npm -v | cut -d'.' -f1,2)"
|
||||
interval=once
|
||||
separator=false
|
||||
signal=10
|
||||
|
||||
# System info
|
||||
|
||||
[wifi]
|
||||
|
|
|
@ -111,23 +111,6 @@ self: super: {
|
|||
text = builtins.readFile ./xdebug.sh;
|
||||
};
|
||||
|
||||
dmenu-custom-scripts-node-version = super.pkgs.writeShellApplication {
|
||||
name = "dmenu-custom-scripts-node-version";
|
||||
|
||||
runtimeInputs = [
|
||||
super.pkgs.dmenu
|
||||
];
|
||||
|
||||
text = ''
|
||||
nodechosen=$(update-alternatives --list node | dmenu -i -l 20 -p "$(node --version | cut -d'.' -f1,2 | sed s/v//)")
|
||||
npmchoosen="$(dirname "$(dirname "$nodechosen")")/lib/node_modules"
|
||||
sudo update-alternatives --set node "$nodechosen" > /dev/null
|
||||
sudo update-alternatives --set npm "$npmchoosen" > /dev/null
|
||||
pkill -SIGRTMIN+10 i3blocks
|
||||
notify-send "switching node version" "$(node --version)"
|
||||
'';
|
||||
};
|
||||
|
||||
dmenu-custom-scripts = super.pkgs.writeShellApplication rec {
|
||||
name = "dmenu_selection";
|
||||
|
||||
|
@ -141,7 +124,6 @@ self: super: {
|
|||
scripts+=("${super.pkgs.dmenu-custom-scripts-php-version.name}")
|
||||
scripts+=("${super.pkgs.dmenu-custom-scripts-composer-version.name}")
|
||||
scripts+=("${super.pkgs.dmenu-custom-scripts-xdebug.name}")
|
||||
scripts+=("${super.pkgs.dmenu-custom-scripts-node-version.name}")
|
||||
|
||||
OIFS="$IFS" IFS=$'\n'
|
||||
scriptsString="''${scripts[*]}"
|
||||
|
@ -171,9 +153,6 @@ self: super: {
|
|||
"${super.pkgs.dmenu-custom-scripts-xdebug.name}")
|
||||
bash "${super.pkgs.dmenu-custom-scripts-xdebug}/bin/${super.pkgs.dmenu-custom-scripts-xdebug.name}" || exit 0
|
||||
;;
|
||||
"${super.pkgs.dmenu-custom-scripts-node-version.name}")
|
||||
bash "${super.pkgs.dmenu-custom-scripts-node-version}/bin/${super.pkgs.dmenu-custom-scripts-node-version.name}" || exit 0
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
|
|
|
@ -97,7 +97,7 @@ Todos
|
|||
|
||||
* Migrate firefox (with geckodriver), thunderbird, ungoogled chromium
|
||||
|
||||
* Begin migrating local development to execute nodejs, yarn, php, etc. On a per customer project.
|
||||
* Begin migrating local development to execute php. On a per customer project.
|
||||
Use flakes?
|
||||
Most are more or less the same, maybe provide a general flake inside this repo which can be used by projects?
|
||||
Also include psysh
|
||||
|
|
Loading…
Reference in a new issue