1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Tabs to spaces.

This commit is contained in:
William Ting 2016-05-11 20:40:00 -07:00
parent 9cf647bc6d
commit 9a6e2869b1
2 changed files with 10 additions and 10 deletions

View File

@ -61,11 +61,11 @@ j() {
output="$(autojump ${@})" output="$(autojump ${@})"
if [[ -d "${output}" ]]; then if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m" echo -e "\\033[31m${output}\\033[0m"
else else
echo -e "${output}" echo -e "${output}"
fi fi
cd "${output}" cd "${output}"
else else
echo "autojump: directory '${@}' not found" echo "autojump: directory '${@}' not found"

View File

@ -52,11 +52,11 @@ j() {
setopt localoptions noautonamedirs setopt localoptions noautonamedirs
local output="$(autojump ${@})" local output="$(autojump ${@})"
if [[ -d "${output}" ]]; then if [[ -d "${output}" ]]; then
if [ -t 1 ]; then # if stdout is a terminal, use colors if [ -t 1 ]; then # if stdout is a terminal, use colors
echo -e "\\033[31m${output}\\033[0m" echo -e "\\033[31m${output}\\033[0m"
else else
echo -e "${output}" echo -e "${output}"
fi fi
cd "${output}" cd "${output}"
else else
echo "autojump: directory '${@}' not found" echo "autojump: directory '${@}' not found"