Fish: Unknown command: '##' Error

Hi,
I'm new to Arch and Garuda linux. I installed Garuda Dr460nized edition about 2 days ago and I fell in love the second i got it up and running. However when i booted up my system this morning i got this error in my fish terminal:

fish: Unknown command: '##'
~/.config/fish/config.fish (line 1):
?>>?## Set values
^
from sourcing file ~/.config/fish/config.fish
called during startup

This is my config.fish file:

## Set values
# Hide welcome message
set fish_greeting
set VIRTUAL_ENV_DISABLE_PROMPT "1"
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"

# Set settings for https://github.com/franciscolourenco/done
set -U __done_min_cmd_duration 10000
set -U __done_notification_urgency_level low


## Environment setup
# Apply .profile
source ~/.profile

# Add ~/.local/bin to PATH
if test -d ~/.local/bin
    if not contains -- ~/.local/bin $PATH
        set -p PATH ~/.local/bin
    end
end

# Add depot_tools to PATH
if test -d ~/Applications/depot_tools
    if not contains -- ~/Applications/depot_tools $PATH
        set -p PATH ~/Applications/depot_tools
    end
end


## Starship prompt
if status --is-interactive
   source ("/usr/bin/starship" init fish --print-full-init | psub)
end


## Functions
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
function __history_previous_command
  switch (commandline -t)
  case "!"
    commandline -t $history[1]; commandline -f repaint
  case "*"
    commandline -i !
  end
end

function __history_previous_command_arguments
  switch (commandline -t)
  case "!"
    commandline -t ""
    commandline -f history-token-search-backward
  case "*"
    commandline -i '$'
  end
end

if [ "$fish_key_bindings" = fish_vi_key_bindings ];
  bind -Minsert ! __history_previous_command
  bind -Minsert '$' __history_previous_command_arguments
else
  bind ! __history_previous_command
  bind '$' __history_previous_command_arguments
end

# Fish command history
function history
    builtin history --show-time='%F %T '
end

function backup --argument filename
    cp $filename $filename.bak
end

# Copy DIR1 DIR2
function copy
    set count (count $argv | tr -d \n)
    if test "$count" = 2; and test -d "$argv[1]"
	set from (echo $argv[1] | trim-right /)
	set to (echo $argv[2])
        command cp -r $from $to
    else
        command cp $argv
    end
end


## Useful aliases
# Replace ls with exa
alias ls='exa -al --color=always --group-directories-first --icons' # preferred listing
alias la='exa -a --color=always --group-directories-first --icons'  # all files and dirs
alias ll='exa -l --color=always --group-directories-first --icons'  # long format
alias lt='exa -aT --color=always --group-directories-first --icons' # tree listing
alias l.="exa -a | egrep '^\.'"                                     # show only dotfiles

# Replace some more things with better alternatives
alias cat='bat --style header --style rules --style snip --style changes --style header'
[ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay='paru --bottomup'

# Common use
alias aup="pamac upgrade --aur"
alias grubup="sudo update-grub"
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
alias tarnow='tar -acf '
alias untar='tar -zxvf '
alias wget='wget -c '
alias rmpkg="sudo pacman -Rdd"
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
alias upd='sudo reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && cat /etc/pacman.d/mirrorlist && sudo pacman -Syu && fish_update_completions && sudo updatedb && sudo -H DIFFPROG=meld pacdiff'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias hw='hwinfo --short'                                   # Hardware Info
alias big="expac -H M '%m\t%n' | sort -h | nl"              # Sort installed packages according to size in MB (expac must be installed)
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l'			# List amount of -git packages

# Get fastest mirrors 
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist" 
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist" 
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist" 
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist" 

# Help people new to Arch
alias apt='man pacman'
alias apt-get='man pacman'
alias pacdiff='sudo -H DIFFPROG=meld pacdiff'               # Compare .pacnew & .pacsave files 
alias helpme='cht.sh --shell'
alias please='sudo'
alias tb='nc termbin.com 9999'
alias paru="paru --bottomup"

# Cleanup orphaned packages
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'

# Get the error messages from journalctl
alias jctl="journalctl -p 3 -xb"

# Recent installed packages
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"


## Import colorscheme from 'wal' asynchronously
if type "wal" >> /dev/null 2>&1
   cat ~/.cache/wal/sequences
end


## Run paleofetch if session is interactive
if status --is-interactive
   paleofetch
end

Any help would be greatly appreciated, thanks in advance :slight_smile:.

Looks like the same but it isn't.

Delete first line or copy

cp /etc/skel/.config/fish/config.fish /home/$USER/.config/fish/config.fish

and
:slight_smile:

2 Likes

Thanks for the quick reply!

Unfortunately, both the options didn't work and I still get the same error.

Did you use new terminal window?

1 Like

Yeah, i even restarted my PC to check and it didn't seem to change anything.

1 Like

Very weird occurance which I cant reproduce :thinking:
What happens if you remove the comment?
Also, any other changes done to the installation worth mentioning?

1 Like

If I remove the comment it says:

fish: Unknown command:
~/.config/fish/config.fish (line 1):
?>>?
^
from sourcing file ~/.config/fish/config.fish
called during startup

Also when i used “neofetch” it only displayed the eagle and didn’t show hardware and other details like it did when i tried it yesterday, very weird.

Nope, absolutely no changes. I’ve never used an Arch based distro (I used Manjaro back in 2015 when i was 11 years old but I broke it in a day lol) so i didn’t want to tinker before i got used to this distro.

That sounds even weirder, does it work today?
Please post inxi -Fxxxza here :eyes:

Here’s the output as requested :slight_smile:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_IN",
LC_ALL = (unset),
LANG = "en_IN"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
System:    Kernel: 5.11.11-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 10.2.0  
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=c36f1f4c-4d02-4eab-83e1-c025092f2e43 rw  
rootflags=subvol=@ quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma 5.21.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux  
base: Arch Linux  
Machine:   Type: Desktop Mobo: Micro-Star model: B450M PRO-VDH MAX (MS-7A38) v: 8.0 serial: <filter> UEFI: American Megatrends  
v: B.70 date: 06/10/2020  
CPU:       Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) model-id: 71 (113)  
stepping: N/A microcode: 8701021 cache: L2: 3 MiB  
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 93607  
Speed: 3899 MHz min/max: 2200/3900 MHz boost: enabled Core speeds (MHz): 1: 3899 2: 3900 3: 3896 4: 3898 5: 3898  
6: 3896 7: 3898 8: 3899 9: 3900 10: 3899 11: 3900 12: 3900  
Vulnerabilities: Type: itlb_multihit status: Not affected  
Type: l1tf status: Not affected  
Type: mds status: Not affected  
Type: meltdown status: Not affected  
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp  
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization  
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling  
Type: srbds status: Not affected  
Type: tsx_async_abort status: Not affected  
Graphics:  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] vendor: ZOTAC driver: nvidia v: 460.67 alternate: nouveau,nvidia_drm  
bus-ID: 29:00.0 chip-ID: 10de:2182 class-ID: 0300  
Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: loaded: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 91 s-size: 536x301mm (21.1x11.9") s-diag: 615mm (24.2")
Monitor-1: DP-2 res: 1920x1080 dpi: 92 size: 532x304mm (20.9x12.0") diag: 613mm (24.1")
OpenGL: renderer: GeForce GTX 1660 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 460.67 direct render: Yes
Audio:     Device-1: NVIDIA TU116 High Definition Audio vendor: ZOTAC driver: snd_hda_intel v: kernel bus-ID: 29:00.1
chip-ID: 10de:1aeb class-ID: 0403
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
v: kernel bus-ID: 2b:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-3:2 chip-ID: 046d:0825
class-ID: 0102 serial: <filter>
Sound Server-1: ALSA v: k5.11.11-zen1-1-zen running: yes
Sound Server-2: JACK v: 0.125.0 running: no
Sound Server-3: PulseAudio v: 14.2 running: yes
Sound Server-4: PipeWire v: 0.3.24 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI driver: r8169 v: kernel
port: f000 bus-ID: 25:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp37s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth: Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
chip-ID: 0a12:0001 class-ID: fe01
Report: ID: hci0 state: down bt-service: enabled, running address: <filter>
Drives:    Local Storage: total: 1.36 TiB used: 412.54 GiB (29.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: DT01ACA050 size: 465.76 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: A7C0 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD1600BEVT-22A23T0 size: 149.05 GiB block-size:
physical: 512 B logical: 512 B speed: 3.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 1A01 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD3200BEVT-00A0RT0 size: 298.09 GiB block-size:
physical: 512 B logical: 512 B speed: 3.0 Gb/s rotation: 5400 rpm serial: <filter> rev: 1A01 scheme: MBR
ID-4: /dev/sdd maj-min: 8:48 vendor: Samsung model: MZNTE512HMJH-000H1 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s rotation: SSD serial: <filter> rev: 2H0Q scheme: GPT
Partition: ID-1: / raw-size: 148.8 GiB size: 148.8 GiB (100.00%) used: 20.31 GiB (13.6%) fs: btrfs dev: /dev/sdb2
maj-min: 8:18
ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 546 KiB (0.2%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 148.8 GiB size: 148.8 GiB (100.00%) used: 20.31 GiB (13.6%) fs: btrfs dev: /dev/sdb2
maj-min: 8:18
ID-4: /var/log raw-size: 148.8 GiB size: 148.8 GiB (100.00%) used: 20.31 GiB (13.6%) fs: btrfs dev: /dev/sdb2
maj-min: 8:18
ID-5: /var/tmp raw-size: 148.8 GiB size: 148.8 GiB (100.00%) used: 20.31 GiB (13.6%) fs: btrfs dev: /dev/sdb2
maj-min: 8:18
Swap:      Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100)
ID-1: swap-1 type: zram size: 1.3 GiB used: 512 KiB (0.0%) priority: 32767 dev: /dev/zram0
ID-2: swap-2 type: zram size: 1.3 GiB used: 512 KiB (0.0%) priority: 32767 dev: /dev/zram1
ID-3: swap-3 type: zram size: 1.3 GiB used: 512 KiB (0.0%) priority: 32767 dev: /dev/zram2
ID-4: swap-4 type: zram size: 1.3 GiB used: 512 KiB (0.0%) priority: 32767 dev: /dev/zram3
ID-5: swap-5 type: zram size: 1.3 GiB used: 512 KiB (0.0%) priority: 32767 dev: /dev/zram4
ID-6: swap-6 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram5
ID-7: swap-7 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram6
ID-8: swap-8 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram7
ID-9: swap-9 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram8
ID-10: swap-10 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram9
ID-11: swap-11 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram10
ID-12: swap-12 type: zram size: 1.3 GiB used: 256 KiB (0.0%) priority: 32767 dev: /dev/zram11
Sensors:   System Temperatures: cpu: 48.5 C mobo: N/A gpu: nvidia temp: 45 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 28%
Info:      Processes: 389 Uptime: 6h 43m wakeups: 2 Memory: 15.64 GiB used: 5.13 GiB (32.8%) Init: systemd v: 248
tool: systemctl Compilers: gcc: 10.2.0 Packages: pacman: 1458 lib: 350 Shell: fish v: 3.2.1 running-in: konsole
inxi: 3.3.03

Nope, still doesn’t. Double checked on my laptop which has Garuda as well and it shows all the details :frowning:

Delete the line completely with Backspace.

Probable BOM?

2 Likes

Yeah I did that and it didn't work, I wiped my windows SSD and installed Garuda and its much better than it was on my HDD so i think ill stick to that and this problem isn't there (hopefully doesn't come back). This problem isn't solved but I dont have it anymore, so i think you can close the thread.

Thanks for the help, Im glad to be a part of the Arch and Garuda community. Love what you guys do for the community, keep being awesome!

2 Likes

Yes, see meld in post #2

1 Like