zsh changes

This commit is contained in:
Jonathan Hodgson 2019-10-29 13:50:51 +00:00
parent 3c6b8fd06c
commit 4b625841e0
3 changed files with 15 additions and 17 deletions

View file

@ -53,7 +53,8 @@ ZSH_CUSTOM=$HOME/.dotfiles/shells/zsh/oh-my-zsh-custom
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-better-npm-completion zsh-autosuggestions)
plugins=(navi git zsh-better-npm-completion zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
@ -108,16 +109,14 @@ TRAPWINCH(){
#fi
#
#local current="$(project current --path)"
#if [ -n "$current" ]; then
# echo "yay"
# local script="/usr/bin/script"
# echo "'$(ps -ocommand -p $PPID | grep -v 'COMMAND' | cut -d' ' -f1)'"
# if [[ ! "$(ps -ocommand -p $PPID | grep -v 'COMMAND' | cut -d' ' -f1 )" == "$script" ]]; then
# mkdir "$current/shell-logs"
# /usr/bin/script -f "$current/shell-logs/$(date +"%d-%b-%y_%H-%M-%S")_shell.log"
# fi
#fi
local current="$(project current --path)"
if [ -n "$current" ]; then
local script="/usr/bin/script"
if [[ ! "$(ps -ocommand -p $PPID | grep -v 'COMMAND' | cut -d' ' -f1 )" == "$script" ]]; then
mkdir "$current/shell-logs"
/usr/bin/script -f "$current/shell-logs/$(date +"%d-%b-%y_%H-%M-%S")_shell.log"
fi
fi
#clear
#tldr --linux -r