From c8ba56a524a461912aa0fefc9aa47a7e3261521e Mon Sep 17 00:00:00 2001 From: afonso Date: Thu, 28 Nov 2024 18:33:21 +0000 Subject: [PATCH] [zsh] ls on cd and zshenv fix --- .config/zsh/.zshenv | 3 +++ .config/zsh/functions.zsh | 11 +++++++++++ .zshenv | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv index 654463f..4366349 100644 --- a/.config/zsh/.zshenv +++ b/.config/zsh/.zshenv @@ -32,6 +32,9 @@ export PATH="$HOME/.ghcup/bin:$PATH" export PATH="$HOME/.miniforge3/bin:$PATH" export PATH="$HOME/.cabal/bin:$PATH" +export GOPATH="$HOME/go" +export GOBIN="$GOPATH/bin" + #Android stuff export ANDROID_HOME=~/android/sdk export ANDROID_TOOLS_PATHS=$ANDROID_HOME/cmdline-tools/latest/bin: diff --git a/.config/zsh/functions.zsh b/.config/zsh/functions.zsh index 2374f31..a6b7735 100644 --- a/.config/zsh/functions.zsh +++ b/.config/zsh/functions.zsh @@ -45,3 +45,14 @@ function qmk_flash_left(){ } alias nvim_update='nvim --headless "+Lazy! sync" +qa' + +alias ..="cd .." + +function cd() +{ + builtin cd "$@" && ls; +} + + + + diff --git a/.zshenv b/.zshenv index 2f5e933..59c76e6 100644 --- a/.zshenv +++ b/.zshenv @@ -1,2 +1,3 @@ -export XDG_CONFIG_HOME="$HOME/.config" -export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +export XDG_CONFIG_HOME="$HOME"/.config +export ZDOTDIR="$XDG_CONFIG_HOME"/zsh +source "$ZDOTDIR"/.zshenv