diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-03-16 02:11:01 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-03-16 02:11:01 +0000 |
commit | 9e9243a1040067c8f78c0e95b744fbd600d5bf25 (patch) | |
tree | f40f711afe945350bf730602c8b3b987b30f4bd5 | |
parent | 993893960bdd0cc21313feca88aab045c80667f8 (diff) | |
download | nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.tar nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.tar.gz nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.tar.bz2 nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.tar.lz nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.tar.xz nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.tar.zst nixlib-9e9243a1040067c8f78c0e95b744fbd600d5bf25.zip |
modules/zsh: use alias to hide GDB startup messages
GDB prints a hell of a lot of stuff when it's started by default: > GNU gdb (GDB) 10.1 > Copyright (C) 2020 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-unknown-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <https://www.gnu.org/software/gdb/bugs/>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > > For help, type "help". > Type "apropos word" to search for commands related to "word". This is especially annoying when running with -tui, when it'll make you page through this crap before you can use it (and if you do e.g. -ex run, it won't actually start running the program until the pager is finished). There's no way to configure it not to do this, but fortunately it does at least have a command line switch to turn it off.
-rw-r--r-- | modules/shell/zsh/zshrc.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index 4afb3ed68d26..6e8efe7a14fb 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -178,6 +178,7 @@ fi # Aliases alias beep='printf "\a"' +alias gdb='gdb -q' alias ls=${lib.escapeShellArg (if stdenv.isDarwin then "ls -AFh" else |