aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/.profile13
-rw-r--r--shell/zsh/.zshrc2
-rw-r--r--shell/zsh/broot.zsh21
3 files changed, 36 insertions, 0 deletions
diff --git a/shell/.profile b/shell/.profile
index eda4c94..d24656e 100644
--- a/shell/.profile
+++ b/shell/.profile
@@ -8,6 +8,18 @@ prepend_path () {
esac
}
+
+_GUIX_PROFILE=~/.config/guix/current
+export GUIX_PROFILE=~/.guix-profile
+export GUIX_LOCPATH=$GUIX_PROFILE/lib/locale
+
+export INFOPATH=$_GUIX_PROFILE/share/info:$INFOPATH
+export XDG_DATA_DIRS=$GUIX_PROFILE/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}
+
+prepend_path $_GUIX_PROFILE/bin
+[ -f $GUIX_PROFILE/etc/profile ] && . $GUIX_PROFILE/etc/profile
+
+
# export ATOM_NODE_URL=http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
# export CHICKEN_REPOSITORY=~/programs/chicken_repository
# export GDK_BACKEND=wayland
@@ -22,6 +34,7 @@ export EDITOR=nvim
export QT_QPA_PLATFORMTHEME=qt5ct
export VISUAL=nvim
+
prepend_path ~/opt/janet/bin
prepend_path ~/opt/python310/bin
prepend_path ~/bin
diff --git a/shell/zsh/.zshrc b/shell/zsh/.zshrc
index 1ecf9a2..261b166 100644
--- a/shell/zsh/.zshrc
+++ b/shell/zsh/.zshrc
@@ -15,6 +15,8 @@ PROMPT='[%F{green}%n%f@%m %F{green}%~%f $(git_super_status)]$ '
. ~/.dotfiles/shell/zsh/fzf/key-bindings.zsh
+. ~/.dotfiles/shell/zsh/broot.zsh
+
. /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
. /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
diff --git a/shell/zsh/broot.zsh b/shell/zsh/broot.zsh
new file mode 100644
index 0000000..44cee96
--- /dev/null
+++ b/shell/zsh/broot.zsh
@@ -0,0 +1,21 @@
+
+# This script was automatically generated by the broot program
+# More information can be found in https://github.com/Canop/broot
+# This function starts broot and executes the command
+# it produces, if any.
+# It's needed because some shell commands, like `cd`,
+# have no useful effect if executed in a subshell.
+function br {
+ local cmd cmd_file code
+ cmd_file=$(mktemp)
+ if broot --outcmd "$cmd_file" "$@"; then
+ cmd=$(<"$cmd_file")
+ rm -f "$cmd_file"
+ eval "$cmd"
+ else
+ code=$?
+ rm -f "$cmd_file"
+ return "$code"
+ fi
+}
+