Hello I am trying to make custom commands for my fish terminal:
There is an error when I run bash: find-the-command: "ng" is not found locally, searching in repositories... bash: ng: command not found
Also I can't create simple commands with alias:
Code in .bashrc: alias anan 'echo ANACILIK YAPMA'
Error: bash: alias: anan:yok bash: alias: echo ANACILIK YAPMA:yok
my .bashrc:
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Load starship prompt if starship is installed
if [ -x /usr/bin/starship ]; then
__main() {
local major="${BASH_VERSINFO[0]}"
local minor="${BASH_VERSINFO[1]}"
if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then
source <("/usr/bin/starship" init bash --print-full-init)
else
source /dev/stdin <<<"$("/usr/bin/starship" init bash --print-full-init)"
fi
}
__main
unset -f __main
fi
# Advanced command-not-found hook
source /usr/share/doc/find-the-command/ftc.bash
# Aliases
alias dir='dir --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
alias grep='grep --color=auto'
alias grubup="sudo update-grub"
alias hw='hwinfo --short'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
alias psmem='ps auxf | sort -nr -k 4'
alias rmpkg="sudo pacman -Rdd"
alias tarnow='tar -acf '
alias untar='tar -zxvf '
alias upd='/usr/bin/update'
alias vdir='vdir --color=auto'
alias wget='wget -c '
# Help people new to Arch
alias apt-get='man pacman'
alias apt='man pacman'
alias helpme='cht.sh --shell'
alias please='sudo'
alias tb='nc termbin.com 9999'
# 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"
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Load Angular CLI autocompletion.
source <(ng completion script)
# JINA_CLI_BEGIN
## autocomplete
_jina() {
COMPREPLY=()
local word="${COMP_WORDS[COMP_CWORD]}"
if [ "$COMP_CWORD" -eq 1 ]; then
COMPREPLY=( $(compgen -W "$(jina commands)" -- "$word") )
else
local words=("${COMP_WORDS[@]}")
unset words[0]
unset words[$COMP_CWORD]
local completions=$(jina completions "${words[@]}")
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
fi
}
complete -F _jina jina
# session-wise fix
ulimit -n 4096
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
# default workspace for Executors
export JINA_DEFAULT_WORKSPACE_BASE="${HOME}/.jina/executor-workspace"
# JINA_CLI_END
. "$HOME/.cargo/env"
I want to be able to run my custom command without additionally typing bash to terminal
I mean when I open my terminal I want to be able to use my custom command instantaly
By-the-way, fish is a shell, like bash, etc.
The terminal is something different, the application: Konsole, Alacritty, etc.
This is something (outside the issue) you could “study” on the Internet.
Can you provide your garuda-inxi as per topic creation template?
No, they are two different shells. E.g. see: https://wiki.archlinux.org/title/Command-line_shell
But you’ll find a lot of information on the internet on fish, to check the diferences v/s bash, if needed.
If you want to use only bash, you need to change your shell, and can do it from both the Garuda Assistant and command line.
Please search in the forum, there is plenty of information about that.
But first, you have to "study" the different syntax of fish, otherwise your commands won't work.
Otherwise you can change to bash. Fish is only the default.
Thanks a lot bro I really apriciate you guys helpfulness | I have a question general about programming: Does such big projects like in garuda linux, Do you guys write all libraries with math etc. Yourself? or you are using others have built by non-contributors.
Here you will find everything, it consists of open source,
except for the graphics ,
many tools were developed and written by the Garuda Linux Developers.
What they were created with, you can also find out there.
And remember that most of the software in a Linux distribution comes from "upstream" (the Kernel, the Desktop Environment, most of the applications).
A distribution consists in putting together these pieces, selecting and especially configuring them to the like of the developers/maintainers. All the above is not developed in a distribution, but integrated (there are exceptions of course). What is developed is normally the additional applications, often consisting in tools, which are specific to a distribution. You will often read of "Garuda Assistant" and many other things normally starting with "Garuda".
This bar between how much is only integrated and how much is developed/customized of course goes much higher for the largest distributions, which have huge resources and probably different objectives (€).
This is a concept I personally often try to enphatize to new users creating issues on applications which are only integrated into Garuda: first always search upstream.
The first step of this "upstream", since we are based on Arch, is the Arch package and relevant bugs. But also here, often Arch maintainers are often "only" packaging the applications which come from a further step upstream (they create something installable in Arch), so most likely (unless there is a packaging error), the issue must be searched upstream where the application is developed.
Just a quick reading here: