Skip to content

Instantly share code, notes, and snippets.

View a7madgamal's full-sized avatar

Ahmed Hassanein a7madgamal

View GitHub Profile
@a7madgamal
a7madgamal / apparix.sh
Last active January 1, 2016 07:29
path bookmarks for terminal,"sudo apt-get install apparix" then append the gist code to the ~/.bashrc file =========================================== syntax: cd /very/long/bath/to/very/deep/folder/ >bm notsolong now wherever you are,this command takes you to your bookmark >to notsolong
function to () {
if test "$2"; then
cd "$(apparix "$1" "$2" || echo .)";
else
cd "$(apparix "$1" || echo .)";
fi
pwd
}
function bm () {
if test "$2"; then