shells: silverfin*: empty motd so it doesn't show in rubymine

This commit is contained in:
Charlotte Van Petegem 2024-07-18 10:05:45 +02:00
parent 4fe2d1faab
commit 649f500a1c
3 changed files with 20 additions and 14 deletions

View file

@ -2,12 +2,15 @@
pkgs.devshell.mkShell { pkgs.devshell.mkShell {
name = "Silverfin"; name = "Silverfin";
imports = [ "${inputs.devshell}/extra/language/ruby.nix" ]; imports = [ "${inputs.devshell}/extra/language/ruby.nix" ];
devshell.startup = { devshell = {
motd = "";
startup = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store # Hack to make sure Rubymine doesn't use an ephemeral path from the nix store
"link-devshell-dir".text = '' "link-devshell-dir".text = ''
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell
''; '';
}; };
};
packages = with pkgs; [ packages = with pkgs; [
cmake cmake
nodejs_18 nodejs_18

View file

@ -2,16 +2,19 @@
pkgs.devshell.mkShell { pkgs.devshell.mkShell {
name = "Silverfin"; name = "Silverfin";
imports = [ "${inputs.devshell}/extra/language/ruby.nix" ]; imports = [ "${inputs.devshell}/extra/language/ruby.nix" ];
devshell.startup = { devshell = {
motd = "";
startup = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store # Hack to make sure Rubymine doesn't use an ephemeral path from the nix store
"link-devshell-dir".text = '' "link-devshell-dir".text = ''
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell
''; '';
}; };
};
commands = [ commands = [
{ {
name = "delete-merged"; name = "delete-merged";
category = "general commands"; category = "[general commands]";
help = "Delete merged branches"; help = "Delete merged branches";
command = '' command = ''
git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f - <(git branch -vv | grep origin) | awk '{print $1}' | xargs -r git branch -D git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f - <(git branch -vv | grep origin) | awk '{print $1}' | xargs -r git branch -D