aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorPeter Son Struschka <me@peter-struschka.com>2020-02-02 12:50:32 +0800
committerPeter Son Struschka <me@peter-struschka.com>2020-02-02 12:50:32 +0800
commitf2b18aab5a84d04a36f4194473680ad70bdb5578 (patch)
treee9db24237556f25832811d224bcb7898f22d5d1a /zsh
parent2bb9010d2e613206ce3d476dbea81eb9a56f3c66 (diff)
downloaddotfiles-f2b18aab5a84d04a36f4194473680ad70bdb5578.tar.gz
dotfiles-f2b18aab5a84d04a36f4194473680ad70bdb5578.tar.bz2
dotfiles-f2b18aab5a84d04a36f4194473680ad70bdb5578.tar.lz
dotfiles-f2b18aab5a84d04a36f4194473680ad70bdb5578.tar.xz
dotfiles-f2b18aab5a84d04a36f4194473680ad70bdb5578.tar.zst
dotfiles-f2b18aab5a84d04a36f4194473680ad70bdb5578.zip
script to find and edit config files
Diffstat (limited to 'zsh')
l---------zsh/.local/share/config-files/zprofile1
l---------zsh/.local/share/config-files/zshrc1
-rwxr-xr-xzsh/.zprofile15
-rw-r--r--zsh/.zshrc65
4 files changed, 44 insertions, 38 deletions
diff --git a/zsh/.local/share/config-files/zprofile b/zsh/.local/share/config-files/zprofile
new file mode 120000
index 0000000..5c57bdf
--- /dev/null
+++ b/zsh/.local/share/config-files/zprofile
@@ -0,0 +1 @@
+../../../.zprofile \ No newline at end of file
diff --git a/zsh/.local/share/config-files/zshrc b/zsh/.local/share/config-files/zshrc
new file mode 120000
index 0000000..673de52
--- /dev/null
+++ b/zsh/.local/share/config-files/zshrc
@@ -0,0 +1 @@
+../../../.zshrc \ No newline at end of file
diff --git a/zsh/.zprofile b/zsh/.zprofile
index d1e8f03..a4514ae 100755
--- a/zsh/.zprofile
+++ b/zsh/.zprofile
@@ -1,12 +1,13 @@
-if type "cowfortune" > /dev/null; then
- cowfortune
-fi
+source /etc/zsh/zprofile
+#if type "cowfortune" > /dev/null; then
+# cowfortune
+#fi
#. /etc/profile.d/vte.sh
-export TERM=xterm-256color
+#export TERM=xterm-256color
-export EDITOR=emacsclient
+export EDITOR="emacsclient -c"
export DEFAULT_USER=peter
@@ -16,9 +17,11 @@ export QT_SCALE_FACTOR=0
export MTP_NO_PROBE="1"
+export XDG_CONFIG_HOME="$HOME/.config"
+
# Android SDK
-export ANDROID_HOME=/home/peter/Android/Sdk
+export ANDROID_HOME="$HOME/.local/share/android-sdk"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools/bin:$PATH"
# bin
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 2ba2d1f..936b6d4 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -22,52 +22,53 @@ antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search
if [ "$TERM" = "linux" ]; then
- _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
- for i in $(sed -n "$_SEDCMD" $HOME/.Xresources | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do
- echo -en "$i"
- done
- clear
+ _SEDCMD='s/.*\*color\([0-9]\{1,\}\).*#\([0-9a-fA-F]\{6\}\).*/\1 \2/p'
+ for i in $(sed -n "$_SEDCMD" $HOME/.Xresources | awk '$1 < 16 {printf "\\e]P%X%s", $1, $2}'); do
+ echo -en "$i"
+ done
+ clear
fi
-# THEME
-POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k
-POWERLEVEL9K_PROMPT_ON_NEWLINE=true
-POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
-#POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="↳ "
-POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
-POWERLEVEL9K_MODE='awesome-fontconfig'
-POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
+if [ "$TERM" != "linux" ]; then
+ # THEME
+ POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k
+ POWERLEVEL9K_PROMPT_ON_NEWLINE=true
+ POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
+ #POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="↳ "
+ POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
+ POWERLEVEL9K_MODE='awesome-fontconfig'
+ POWERLEVEL9K_SHORTEN_DIR_LENGTH=3
-POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context virtualenv dir dir_writable vcs)
-POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time root_indicator background_jobs history time)
+ POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon context virtualenv dir dir_writable vcs)
+ POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time root_indicator background_jobs history time)
-# antigen theme https://gist.github.com/pstruschka/c05686e6cf10e12471a3104e42e6366b.git agnoster_custom
-antigen theme bhilburn/powerlevel9k powerlevel9k
-
-antigen apply
+ # antigen theme https://gist.github.com/pstruschka/c05686e6cf10e12471a3104e42e6366b.git agnoster_custom
+ antigen theme bhilburn/powerlevel9k powerlevel9k
+ antigen apply
+fi
if type "kitty" > /dev/null; then
- autoload -Uz compinit
- compinit
- # Completion for kitty
- kitty + complete setup zsh | source /dev/stdin
-
- alias kdiff="kitty +kitten diff"
- alias kicat="kitty +kitten icat"
- alias kunicode="kitty +kitten unicode_input"
- alias kpanel="kitty +kitten panel"
- alias khints="kitty +kitten hints"
- alias kclip="kitty +kitten clipboard"
+ autoload -Uz compinit
+ compinit
+ # Completion for kitty
+ kitty + complete setup zsh | source /dev/stdin
+
+ alias kdiff="kitty +kitten diff"
+ alias kicat="kitty +kitten icat"
+ alias kunicode="kitty +kitten unicode_input"
+ alias kpanel="kitty +kitten panel"
+ alias khints="kitty +kitten hints"
+ alias kclip="kitty +kitten clipboard"
fi
if type "exa" > /dev/null; then
- alias ls=exa
+ alias ls=exa
fi
if type "thefuck" > /dev/null; then
- eval $(thefuck --alias)
+ eval $(thefuck --alias)
fi
if type "fasd" > /dev/null; then