Skip to content

Commit

Permalink
Add makeEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmercer committed Nov 19, 2023
1 parent 885da02 commit 5010706
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
Empty file modified bin/git-clean-submodules
100644 → 100755
Empty file.
21 changes: 21 additions & 0 deletions bin/makeEnv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# Setup local dir with LHOST and RHOST

if ! ifconfig tun0 &> /dev/null; then
echo "ERROR: Please connect to the VPN"
exit 1
fi

if [ -f ".envrc" ]; then
rm .envrc
fi
touch .envrc

LHOST=$(ifconfig tun0 | grep 'inet ' | awk '{print $2}')
echo "export LHOST=$LHOST" >> .envrc

read -p "Enter last two octals of the remote IP address: " REMOTE_IP
echo "export RHOST=192.168.$REMOTE_IP" >> .envrc

direnv allow
2 changes: 1 addition & 1 deletion dot_tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bind Up resize-pane -Z
bind Down resize-pane -Z

# Joining panes
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"

# increase scrollback lines
set -g history-limit 50000
Expand Down
4 changes: 3 additions & 1 deletion system/alii.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ alias C="cd ~/Code"
alias c="code ."
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias erc="code ~/$DOTFILES"
alias cdrc="cd $DOTFILES"
alias erc="code $DOTFILES"
alias h="history"
alias v="vim ."
alias ev="vim ~/.vimrc"
alias o="open"
alias oo="open ."
# Force tmux to use 256 color mode
alias tmux="tmux -2"
alias diff="colordiff"

Expand Down

0 comments on commit 5010706

Please sign in to comment.