Fixed zsh suffix issue when booting i3 with zsh

This commit is contained in:
Wryn Wagner 2019-12-30 23:44:40 -07:00
parent ac9c7d2956
commit 587d3a517c
4 changed files with 25 additions and 8 deletions

View File

@ -1,5 +1,22 @@
#!/bin/bash
source $HOME/.my_bash_env
#!/bin/zsh
source $HOME/.my_zsh_env
XSERVER_DIR="$DOTWRYN/config/xserver"
"$XSERVER_DIR/screenlayout/workdock.sh"
AT_HOME="$(xrandr | grep -q 'HDMI-0 connected')";
AT_RENT="$(xrandr | grep -q 'DP-0 connected' || xrandr | grep -q 'DP-1 connected')";
echo at home >> /home/w0ryn/test
echo $AT_HOME >> /home/w0ryn/test
echo >> /home/w0ryn/test
echo at rent >> /home/w0ryn/test
echo $AT_RENT >> /home/w0ryn/test
if $AT_HOME ; then
"$XSERVER_DIR/screenlayout/homedock_hdmionly.sh";
elif $AT_RENT; then
"$XSERVER_DIR/screenlayout/workdock.sh"
else;
"$XSERVER_DIR/screenlayout/undock.sh";
fi

View File

@ -1,5 +1,5 @@
#!/bin/bash
source $HOME/.my_bash_env
#!/bin/sh
source $HOME/.my_zsh_env
CUSTOM_DMENU_COMMANDS="$HOME/.local/custom_dmenu"
@ -11,5 +11,4 @@ XSERVER_DIR="$DOTWRYN/config/xserver"
"$XSERVER_DIR/set_randr_layout" &
exec i3

View File

@ -3,6 +3,8 @@ source $HOME/.my_vim_env
"sets the following variables:
"$RC_DIR $VIM_DIR $WRYNVIMRC $WRYNBASH $MYBASHRC $WEBBROWSER
set encoding=utf-8
let mapleader = "\\"
"let localmapleader = ','

View File

@ -2,13 +2,12 @@
PYTHON="py"
CLISP="clisp lisp"
SHELL="sh bash zsh"
TEXT="txt md js";
WEB="css scss less html php cshtml json"
JS="ts tsx js"
C="cpp h c cs"
FILES_TO_EDIT="$PYTHON $CLISP $SHELL $TEXT $WEB $JS $C";
FILES_TO_EDIT="$PYTHON $CLISP $TEXT $WEB $JS $C";
for filetype in ${(s/ /)FILES_TO_EDIT}; do
alias -s $filetype="$EDITOR";