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

View file

@ -2,16 +2,19 @@
pkgs.devshell.mkShell {
name = "Silverfin";
imports = [ "${inputs.devshell}/extra/language/ruby.nix" ];
devshell.startup = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store
"link-devshell-dir".text = ''
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell
'';
devshell = {
motd = "";
startup = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store
"link-devshell-dir".text = ''
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell
'';
};
};
commands = [
{
name = "delete-merged";
category = "general commands";
category = "[general commands]";
help = "Delete merged branches";
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