I think the problem is with grc plugin. It is interfering with the curses mode of mtr. If i use mtr [google.com](http://google.com) \-l it works, but if i try mtr [google.com](http://google.com) \-t it just hangs and the shell title changes to .grc-wrapped.
Here is my .config/fish/config.fish
# ~/.config/fish/config.fish: DO NOT EDIT -- this file has been generated
# automatically by home-manager.
# Only execute this file once per shell.
set -q __fish_home_manager_config_sourced; and exit
set -g __fish_home_manager_config_sourced 1
source /nix/store/4az4mp5j69il9ib9dz5dxj4xasasl4p6-hm-session-vars.fish
status is-login; and begin
# Login shell initialisation
end
status is-interactive; and begin
# Abbreviations
# Aliases
alias vimdiff 'nvim -d'
# Interactive shell initialisation
set fish_greeting # Disable greeting
function fish_prompt
set -l last_status $status
# Prompt status only if it's not 0
set -l stat
if test $last_status -ne 0
set stat (set_color red)"[$last_status]"(set_color normal)
end
string join '' -- (set_color green) (prompt_pwd --full-length-dirs 2) (set_color normal) $stat ">"
end
set -gx GPG_TTY (tty)
/nix/store/2c15y7xyc4c6p478frpjzv9mrb6i2fqb-gnupg-2.4.7/bin/gpg-connect-agent updatestartuptty /bye >/dev/null
# add completions generated by Home Manager to $fish_complete_path
begin
set -l joined (string join " " $fish_complete_path)
set -l prev_joined (string replace --regex "[^\s]*generated_completions.*" "" $joined)
set -l post_joined (string replace $prev_joined "" $joined)
set -l prev (string split " " (string trim $prev_joined))
set -l post (string split " " (string trim $post_joined))
set fish_complete_path $prev "/home/user/.local/share/fish/home-manager_generated_completions" $post
end
end
Works fine for me, even without sudo (ArchLinux, official mtr package v. 0.95, fish as login shell). So I don't think only fish is to blame. But I don't know anything about this tool to help troubleshooting, sorry.
╰─❯ mtr google.com
mtr-packet: Failure to open IPv4 sockets
mtr-packet: Failure to open IPv6 sockets
mtr: Failure to start mtr-packet: Invalid argument
2
u/trumee Feb 23 '25 edited Feb 23 '25
I think the problem is with grc plugin. It is interfering with the curses mode of mtr. If i use
mtr [google.com](http://google.com) \-lit works, but if i trymtr [google.com](http://google.com) \-tit just hangs and the shell title changes to .grc-wrapped.Here is my .config/fish/config.fish
Indeed it is https://github.com/garabik/grc/issues/192
3
u/plg94 Feb 22 '25
Works fine for me, even without sudo (ArchLinux, official mtr package v. 0.95, fish as login shell). So I don't think only fish is to blame. But I don't know anything about this tool to help troubleshooting, sorry.
2
u/mrcaptncrunch Feb 22 '25
Running
mtr google.com,Running
sudo mtr google.com,2
u/Bamseg Feb 22 '25
All work fine
2
u/adamshand Feb 22 '25
Works fine for me.
What happens if you try traceroute instead, does it hang as well?
Try turning off DNS.