commit ef1eb37e4269857740b247727fa720518b32ca66
parent fd37a970d953a920bf9c8ac61e6f90a5363f2777
Author: Ryan Jeffrey <pwishie@gmail.com>
Date: Sat, 28 Mar 2020 11:51:23 -0700
updated .zshrc
Diffstat:
2 files changed, 13 insertions(+), 26 deletions(-)
diff --git a/.zshrc b/.zshrc
@@ -153,3 +153,15 @@ extract () {
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
+function vterm_printf(){
+ if [ -n "$TMUX" ]; then
+ # Tell tmux to pass the escape sequences through
+ # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
+ printf "\ePtmux;\e\e]%s\007\e\\" "$1"
+ elif [ "${TERM%%-*}" = "screen" ]; then
+ # GNU screen (screen, screen-256color, screen-256color-bce)
+ printf "\eP\e]%s\007\e\\" "$1"
+ else
+ printf "\e]%s\e\\" "$1"
+ fi
+}+
\ No newline at end of file
diff --git a/scripts/updot.zsh.b b/scripts/updot.zsh.b
@@ -1,26 +0,0 @@
-#!/usr/bin/env zsh
-
-# Takes all config files and places them into ~/src/dotfiles/
-
-# location of all dotfiles
-root_dir="/home/ryan/"
-
-dest_dir="/home/ryan/src/dotfiles/"
-
-dotfile_locals=(".config/"{i3,i3status,mupen64plus,m64py,mpd/mpd.conf,polybar,ranger} ".zshrc" ".emacs" ".econfig.org" ".ncmpcpp")
-
-
-
-
-# folders to exclude from .config
-exclude=("Brave")
-
-cd $dest_dir
-
-# Copy all files
-for config in $dotfile_locals; do
- file=$(echo "$root_dir$config")
- [[ ${exclude[(ie)$file]} -le ${#exclude} ]] || cp "$file" ./. -r
-done
-
-# Move all non-dotfiles back into .config