mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-03-13 03:24:06 +01:00
shell/*: run shellcheck on it
This commit is contained in:
parent
ff6d6ce2a3
commit
de2fa53348
3 changed files with 21 additions and 28 deletions
14
shell/cd.sh
14
shell/cd.sh
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
#correct some fast tipped cds
|
||||
c() {
|
||||
if [ "$1" = "d.." ]; then
|
||||
cd ..;
|
||||
pwd;
|
||||
if [ "${1}" = "d.." ]; then
|
||||
cd .. || return
|
||||
pwd
|
||||
fi
|
||||
if [ -d "$1" ]; then
|
||||
cd "$1" || exit;
|
||||
pwd;
|
||||
if [ -d "${1}" ]; then
|
||||
cd "${1}" || return
|
||||
pwd
|
||||
fi
|
||||
return 0;
|
||||
return 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue