Skip to content

Commit

Permalink
Fix script comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasSmyth committed Apr 17, 2018
1 parent cc97515 commit 29b0ea9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions scripts/multigrep.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash

if [ -z $1 ]; then # check user has passed in search terms
if [ -z $1 ]; then # check user has passed in search terms
echo "pass in search terms"
return 0
else
data="ps -ef | grep $USER" # search processed for current user
data="ps -ef | grep $USER" # search processed for current user
for term in $@; do
data="$data | grep $term" # grep for each term separately
data="$data | grep $term" # grep for each term separately
done

eval $data # evaluate grep statement
eval $data # evaluate grep statement
fi
6 changes: 2 additions & 4 deletions scripts/tmux_session.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env bash

#!/bin/sh

# tmux start-server
# tmux start-server # start server, if not already running

# start new session and split resulting window into 2 panes
tmux new-session -d -s dev -n main \; \
Expand All @@ -26,4 +24,4 @@ tmux new-window -t dev:2 \; \
tmux select-window -t dev:0
tmux attach-session -t dev

# tmux kill-server
# tmux kill-server # ensure server is dead

0 comments on commit 29b0ea9

Please sign in to comment.