diff options
| author | Andrew Guschin <guschin.drew@gmail.com> | 2022-02-20 09:28:22 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin.drew@gmail.com> | 2022-02-20 09:29:15 +0400 |
| commit | 19d9739151bb92ddf9af77efa7b41d16a0971ff1 (patch) | |
| tree | 66d73b4c44ffab172edd1ffbad532e61a44bd625 | |
| parent | e015e0f18488aa6d59626d2a239a416ba89c8c66 (diff) | |
Moved zsh config to home directory
| -rw-r--r-- | .profile | 11 | ||||
| -rw-r--r-- | .zshrc (renamed from .config/zsh/.zshrc) | 11 |
2 files changed, 10 insertions, 12 deletions
@@ -1,10 +1,10 @@ # set PATH so it includes user's private bin if it exists if [ -d "$HOME/.local/bin" ] ; then - PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')" + PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -s -d ':' -)" fi export SHELL="/bin/zsh" -export EDITOR="emacs -nw" +export EDITOR="vim" # For Jetbrains products export _JAVA_AWT_WM_NONREPARENTING=1 @@ -13,7 +13,6 @@ export _JAVA_AWT_WM_NONREPARENTING=1 export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" export XDG_DATA_HOME="$HOME/.local/share" -# export XDG_RUNTIME_DIR="" # XDG Specific configs export MYVIMRC="$XDG_CONFIG_HOME/nvim/init.vim" @@ -27,7 +26,6 @@ export KODI_DATA="$XDG_DATA_HOME/kodi" export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" export PYLINTHOME="$XDG_CACHE_HOME/pylint" export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv" -export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history" export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" export LESSHISTFILE=- @@ -67,8 +65,9 @@ export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME/bundle" export CARGO_HOME="$XDG_DATA_HOME/cargo" export RUSTUP_HOME="$XDG_DATA_HOME/rustup" +# Go export GOPATH="$XDG_DATA_HOME/go" +export PATH="$PATH:/opt/homebrew/bin" export PATH="$PATH:$CARGO_HOME/bin:$GOPATH/bin:$GEM_HOME/bin" -export PATH="$PATH:$(du $GEM_HOME/ruby/*/bin | cut -f2 | paste -sd ':')" - +export PATH="$PATH:$(du $GEM_HOME/ruby/*/bin | cut -f2 | paste -s -d ':' -)" diff --git a/.config/zsh/.zshrc b/.zshrc index e2ede69..152b0f1 100644 --- a/.config/zsh/.zshrc +++ b/.zshrc @@ -1,7 +1,6 @@ # enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto --group-directories-first' +if [ -x /usr/bin/dircolors ] || [ "$(uname)" = "Darwin" ]; then + alias ls='ls --color=auto' alias gcc='gcc -fdiagnostics-color=always' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' @@ -25,7 +24,6 @@ alias yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"' alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' alias sqlite3='sqlite3 -init "$XDG_CONFIG_HOME"/sqlite3/sqliterc' - # ZSH config HISTFILE=~/.cache/zsh/histfile HISTSIZE=1000 @@ -33,12 +31,11 @@ SAVEHIST=1000 setopt extendedglob nomatch unsetopt autocd beep bindkey -e -zstyle :compinstall filename '/home/andrew/.zshrc' autoload -Uz compinit compinit -d $XDG_CACHE_HOME/zsh/zcompdump cdf() { - cd $(find ~ -type d &>/dev/null | fzf) + cd "$(find ~ -type d &>/dev/null | fzf)" } set_ps1() { @@ -52,3 +49,5 @@ set_ps1() { } set_ps1 + +fortune -s | cowsay |