zsh changes
This commit is contained in:
parent
fdb2ed3606
commit
d9465307d6
3 changed files with 15 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue