You are not logged in.

#1 2021-08-14 12:03:08

c_o_e
Member
Registered: 2021-08-14
Posts: 5

[SOLVED] i3WM, Opening a prompt, fish shel, generate multiple "find:

Dear Archusers,

Have this annoying problem that I cant understand and I would relay need some help/guidence on how to solve this.

I using i3 Window manager, and the fish shell.

Every time I open a window with a prompt I get following.

find: warning: you have specified the global option -maxdepth after the argument -name, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
find: paths must precede expression: `^/dev/null'
find: warning: you have specified the global option -maxdepth after the argument -name, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
find: paths must precede expression: `^/dev/null'
find: warning: you have specified the global option -maxdepth after the argument -name, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
find: paths must precede expression: `^/dev/null'
find: warning: you have specified the global option -maxdepth after the argument -name, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
find: paths must precede expression: `^/dev/null'
Välkommen till fish, det vänliga interaktiva skalet
Skriv help för instruktioner om hur man använder fish
[13:51:30] christer@Archmain /home/christer (0) 
>                                                                                  (base)

my "config.fish"

 # Path to your oh-my-fish.
 set fish_path $HOME/.oh-my-fish
 source /home/christer/Documents/=Computing=/anaconda3/etc/fish/conf.d /conda.fish
  
 # Path to your custom folder (default path is ~/.oh-my-fish/custom)
 #set fish_custom $HOME/dotfiles/oh-my-fish
 
 # Load oh-my-fish configuration.
 . $fish_path/oh-my-fish.fish
 
 # Try to solv problem with "fish: Tried to print invalid wide character string"
 set  --global --export LANG en_US.UTF-8
 
 # Custom plugins and themes may be added to ~/.oh-my-fish/custom
 # Plugins and themes can be found at https://github.com/oh-my-fish/
 Theme 'robbyrussell'
 Plugin 'theme'
 
 # >>> conda initialize >>>
 # !! Contents within this block are managed by 'conda init' !!
 eval /home/christer/Documents/=Computing=/anaconda3/bin/conda "shell.fish" "hook" $arg    v | source
 # <<< conda initialize <<<
 

my "oh-my-fish.fish"

# Set fish_custom to the path where your custom config files
# and plugins exist, or use the default custom instead.
if not set -q fish_custom
  set -g fish_custom $fish_path/custom
end

# Add functions defined in oh-my-fish/functions to the path.
if not contains $fish_path/functions/ $fish_function_path
  set fish_function_path $fish_path/functions/ $fish_function_path
end

if set -q fish_plugins
  set_color red
  echo '$fish_plugins usage has been deprecated. Please see https://asciinema.org/a/20802.'
  set_color normal
end

if set -q fish_theme
  set_color red
  echo '$fish_theme usage has been deprecated. Please see https://asciinema.org/a/20802.'
  set_color normal
end

# Add imported plugins, completions and themes. Customize imported
# commands via the $fish_path/custom directory, for example create
# a directory under $fish_path/custom/themes with the same name as
# the theme and override any functions/variables there. Rinse and
# repeat for plugins.
import plugins/$fish_plugins themes/$fish_theme

# Always load oh-my-fish plugin
import plugins/omf

# Source all files inside custom directory.
for load in $fish_custom/*.load
  . $load
end

# Make sure to exit with $status of 1 when reloading the framework.
or true

From what I can understand a "find" command with the wrong syntax is executed somewhere when I open a new prompt window.

Anyone who have an idea on what is going on, or where I should start to troubleshoot.

Thank you and all the beast!
/Christer

Last edited by c_o_e (2021-08-14 13:20:35)

Offline

#2 2021-08-14 12:54:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,503
Website

Re: [SOLVED] i3WM, Opening a prompt, fish shel, generate multiple "find:

Get rid of oh-my-fish.  When ... I mean if ... that solves the problem, you'll know exactly where it is.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-08-14 13:19:40

c_o_e
Member
Registered: 2021-08-14
Posts: 5

Re: [SOLVED] i3WM, Opening a prompt, fish shel, generate multiple "find:

Thank you Trilby!

That solved the problem.

Took away everything related to omf, problem solved. So long since I installed it so I don't even remember why. A good reason in itself to get rid of it.

Thanks.
/Christer

Offline

Board footer

Powered by FluxBB