No description
  • C++ 96.5%
  • CMake 3.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
UnrealDragon e9eb24defb goto v0.0.1
2025-09-10 18:54:44 +05:30
.gitignore goto v0.0.1 2025-09-10 18:54:44 +05:30
CMakeLists.txt goto v0.0.1 2025-09-10 18:54:44 +05:30
main.cpp goto v0.0.1 2025-09-10 18:54:44 +05:30
README.md goto v0.0.1 2025-09-10 18:54:44 +05:30

Simple Goto script written in cpp.

Usage: goto [OPTION|LINK_NAME] Options: -h --help : Show this info -c --create_link : Create a new link e.g: goto --create_link [LINK_NAME] [FROM_PATH] -l --list : List all the existing links -d --delete_link : Delete an exisiting link e.g: goto -d [LINK_NAME] -rf --delete_file : Delete the existing link file completely. [LINK_NAME] : Goes to an exisiting link e.g: goto [LINK_NAME] [LINK_NAME] : Rules for creating [LINK_NAME] name must be BASH variable and must not start with "-" [LINK_NAME] : [LINK_NAME] cannot be "last"

To use add a function in bash like:

function goto() {
	if [[ "$#" -eq 1 ]] && [[ "$1" != -* ]]; then
		out=$(/home/ud/Scripts/goto $1 2>&1)
		if [[ "$?" -eq "0" ]]; then
			cd "$out"
		else
			echo $out
		fi
	else
		/home/ud/Scripts/goto $@
	fi	
}