aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/zprofile
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-25 15:17:37 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-25 15:26:09 +0100
commitd59a26f882017a62b4119a7649ca3d4b43f65725 (patch)
tree3ec808804ef398651a9bcc9a021f16c5d30b7b88 /config/zsh/zprofile
parentbb72eb10b6c7148ad3107c50a4232dea080d1468 (diff)
downloaddotfiles-d59a26f882017a62b4119a7649ca3d4b43f65725.tar.gz
dotfiles-d59a26f882017a62b4119a7649ca3d4b43f65725.tar.bz2
dotfiles-d59a26f882017a62b4119a7649ca3d4b43f65725.zip
Added vint and flake8 to lint vim and qutebrowser conf, Added shellcheck to zsh files, Fixing all linting errors
Diffstat (limited to 'config/zsh/zprofile')
-rwxr-xr-xconfig/zsh/zprofile21
1 files changed, 11 insertions, 10 deletions
diff --git a/config/zsh/zprofile b/config/zsh/zprofile
index 1713b9e..68a9b48 100755
--- a/config/zsh/zprofile
+++ b/config/zsh/zprofile
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/zsh
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/.local/bin"
@@ -20,6 +20,7 @@ export XMONAD_DATA_HOME="$XDG_DATA_HOME"
export XMONAD_CACHE_HOME="$XDG_CACHE_HOME"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
+# shellcheck disable=SC2016
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
@@ -33,14 +34,15 @@ export LESSHISTFILE='-' # no ~/.lesshst
# runtime
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
+# shellcheck disable=SC2155
# color in man (less pager)
-export LESS_TERMCAP_mb=$'\e[1;32m'
-export LESS_TERMCAP_md=$'\e[1;32m'
-export LESS_TERMCAP_me=$'\e[0m'
-export LESS_TERMCAP_se=$'\e[0m'
-export LESS_TERMCAP_so=$'\e[01;33m'
-export LESS_TERMCAP_ue=$'\e[0m'
-export LESS_TERMCAP_us=$'\e[1;4;31m'
+export LESS_TERMCAP_mb=$(printf '%b' '\e[1;32m')
+export LESS_TERMCAP_md=$(printf '%b' '\e[1;32m')
+export LESS_TERMCAP_me=$(printf '%b' '\e[0m')
+export LESS_TERMCAP_se=$(printf '%b' '\e[0m')
+export LESS_TERMCAP_so=$(printf '%b' '\e[01;33m')
+export LESS_TERMCAP_ue=$(printf '%b' '\e[0m')
+export LESS_TERMCAP_us=$(printf '%b' '\e[1;4;31m')
export LESS_TERMCAP_mr=$(tput rev)
export LESS_TERMCAP_mh=$(tput dim)
export LESS_TERMCAP_ZN=$(tput ssubm)
@@ -48,7 +50,6 @@ export LESS_TERMCAP_ZV=$(tput rsubm)
export LESS_TERMCAP_ZO=$(tput ssupm)
export LESS_TERMCAP_ZW=$(tput rsupm)
-
export MINIKUBE_IN_STYLE=false # disable cringe minikube emojies
# school env
@@ -57,4 +58,4 @@ export MINISHELL_TEST_PAGER=vim
export MINISHELL_TEST_FLAGS=-DMINISHELL_TEST
export WEBSERV_FLAGS=-DWEBSERV_CACHARLE
-[ "$(tty)" = '/dev/tty1' ] && exec startx
+[ "$(tty)" = '/dev/tty1' ] && HOME="$XDG_CONFIG_HOME/x11" exec startx