repo: Don't cd unnecessarily
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
#
|
||||
cat <<-EOS
|
||||
repo () {
|
||||
cd \$($(dirname $(realpath ${BASH_SOURCE[0]}))/repo \$@)
|
||||
r=\$($(dirname $(realpath ${BASH_SOURCE[0]}))/repo \$@)
|
||||
[[ "\$r" != "." ]] && [[ "\$r" != "\$(pwd)/" ]] && cd \$r
|
||||
}
|
||||
EOS
|
||||
|
||||
Reference in New Issue
Block a user