-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.shell
More file actions
executable file
·30 lines (26 loc) · 1020 Bytes
/
setup.shell
File metadata and controls
executable file
·30 lines (26 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#### setup to vmath3us/ArchPath, past on .SHELLrc (read your shell documentation)
# bash
#### https://www.gnu.org/software/bash/manual/bash.html#Command-Search-and-Execution
#zsh
#### https://zsh.sourceforge.io/Doc/Release/Command-Execution.html
#fish
#### https://fishshell.com/docs/current/cmds/fish_command_not_found.html
#--------------------------past---------------------------------------------
export PATH=$PATH:$HOME/.local/bin:$HOME/.local/bin/archpath
command_not_found_handle() { ############## or rename example to cnf, and using cnf !!
printf "command not found, searching on ArchPath container\n\n"
search_term="$1"
yay -Fq "$search_term"
if [ $? -ne 0 ] ; then
printf "\nsearch on aur? zero for yes: "
read -r search_aur </dev/tty
if [ "$search_aur" -eq "0" ] ; then
yay -Ss "$search_term"
else
return 127
fi
fi
}
distrobox-import () { ################### or rename, example dtb-imp
$HOME/.local/bin/distrobox-enter -n ArchPath -- /usr/bin/distrobox-import-handler
}