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

@ -107,10 +107,10 @@
]; ];
theme = "robbyrussell"; theme = "robbyrussell";
}; };
sessionVariables = { sessionVariables = {
DEFAULT_USER = "charlotte.vanpetegem"; DEFAULT_USER = "charlotte.vanpetegem";
# Until I get emacs set up on this machine # Until I get emacs set up on this machine
EDITOR = "vim"; EDITOR = "vim";
}; };
shellAliases = { shellAliases = {
gupd = "gfa && gprom"; gupd = "gfa && gprom";

View file

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

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 = {
# Hack to make sure Rubymine doesn't use an ephemeral path from the nix store motd = "";
"link-devshell-dir".text = '' startup = {
ln -snf $DEVSHELL_DIR $PRJ_DATA_DIR/devshell # 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 = [ 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