Removed trailing whitespaces
This commit is contained in:
@@ -8,5 +8,5 @@ if command -v brew &>/dev/null && [[ -s $(brew --prefix)/etc/profile.d/autojump.
|
||||
elif command -v dpkg &>/dev/null && dpkg -s autojump &>/dev/null ; then
|
||||
. "$(dpkg-query -S autojump.sh | cut -d' ' -f2)"
|
||||
elif command -v pacman &>/dev/null && pacman -Q autojump &>/dev/null ; then
|
||||
. "$(pacman -Ql autojump | grep autojump.sh | cut -d' ' -f2)"
|
||||
. "$(pacman -Ql autojump | grep autojump.sh | cut -d' ' -f2)"
|
||||
fi
|
||||
|
||||
@@ -227,7 +227,7 @@ function gitignore-reload() {
|
||||
example '$ gitignore-reload'
|
||||
|
||||
# The .gitignore file should not be reloaded if there are uncommited changes.
|
||||
# Firstly, require a clean work tree. The function require_clean_work_tree()
|
||||
# Firstly, require a clean work tree. The function require_clean_work_tree()
|
||||
# was stolen with love from https://www.spinics.net/lists/git/msg142043.html
|
||||
|
||||
# Begin require_clean_work_tree()
|
||||
@@ -273,5 +273,3 @@ function gitignore-reload() {
|
||||
echo >&2 "Files readded. Commit your new changes now."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ do
|
||||
if [ -f "$possible/pg_hba.conf" ]
|
||||
then
|
||||
# echo "PGDATA: $possible"
|
||||
export PGDATA=$possible
|
||||
export PGDATA=$possible
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -23,7 +23,7 @@ function postgres_start {
|
||||
about 'Starts PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
echo 'Starting Postgres....';
|
||||
echo 'Starting Postgres....';
|
||||
$POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile start
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ function postgres_stop {
|
||||
about 'Stops PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
echo 'Stopping Postgres....';
|
||||
echo 'Stopping Postgres....';
|
||||
$POSTGRES_BIN/pg_ctl -D $PGDATA -l $PGDATA/logfile stop -s -m fast
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ function postgres_status {
|
||||
about 'Returns status of PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
# $POSTGRES_BIN/pg_ctl -D $PGDATA status
|
||||
# $POSTGRES_BIN/pg_ctl -D $PGDATA status
|
||||
if [[ $(is_postgres_running) == "no server running" ]]
|
||||
then
|
||||
echo "Postgres service [STOPPED]"
|
||||
@@ -58,7 +58,7 @@ function postgres_restart {
|
||||
about 'Restarts status of PostgreSQL server'
|
||||
group 'postgres'
|
||||
|
||||
echo 'Restarting Postgres....';
|
||||
echo 'Restarting Postgres....';
|
||||
$POSTGRES_BIN/pg_ctl -D $PGDATA restart
|
||||
}
|
||||
|
||||
@@ -84,4 +84,3 @@ function postgres_serverlog {
|
||||
# tail -500 $PGDATA/pg_log/`ls -Art $PGDATA/pg_log | tail -n 1` | less
|
||||
# }
|
||||
#
|
||||
|
||||
|
||||
@@ -22,5 +22,5 @@ bashPowerlineInit=$(python -c \
|
||||
'bindings', \
|
||||
'bash', \
|
||||
'powerline.sh'))")
|
||||
[ -e $bashPowerlineInit ] || return
|
||||
[ -e $bashPowerlineInit ] || return
|
||||
. $bashPowerlineInit
|
||||
|
||||
Reference in New Issue
Block a user