Skip to content

Commit

Permalink
Tabs to spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
wting committed May 12, 2016
1 parent 9cf647b commit c9be086
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions bin/autojump.bash
Expand Up @@ -61,11 +61,11 @@ j() {

output="$(autojump ${@})"
if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m"
else
echo -e "${output}"
fi
if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m"
else
echo -e "${output}"
fi
cd "${output}"
else
echo "autojump: directory '${@}' not found"
Expand Down
10 changes: 5 additions & 5 deletions bin/autojump.zsh
Expand Up @@ -52,11 +52,11 @@ j() {
setopt localoptions noautonamedirs
local output="$(autojump ${@})"
if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m"
else
echo -e "${output}"
fi
if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m"
else
echo -e "${output}"
fi
cd "${output}"
else
echo "autojump: directory '${@}' not found"
Expand Down

0 comments on commit c9be086

Please sign in to comment.