From af72939279343397f787eb501416a7fde343636c Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Sat, 11 Mar 2023 14:07:43 +0100 Subject: [PATCH] move $PATH to ~/.profile so i3 can access it --- .dotter/global.toml | 1 + i3/.profile | 11 +++++++++++ zsh/.zshrc | 13 +++---------- 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 i3/.profile diff --git a/.dotter/global.toml b/.dotter/global.toml index 6a2927d..be6e680 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -23,6 +23,7 @@ mc = "~/.config/mc" "i3/rofi" = "~/.config/rofi" "i3/i3-scrot.conf" = "~/.config/i3-scrot.conf" "i3/i3status-rust" = "~/.config/i3status-rust" +"i3/.profile" = "~/.profile" [i3.variables] monitor-primary = "not-specified" diff --git a/i3/.profile b/i3/.profile new file mode 100644 index 0000000..56657b8 --- /dev/null +++ b/i3/.profile @@ -0,0 +1,11 @@ +export GOPATH="~/go"; + +export PATH=$GOPATH/bin:$PATH +export PATH=/opt/dart-sdk/bin:$PATH +export PATH=~/dev/flutter/bin:$PATH +export PATH=~/.config/emacs/bin:$PATH +export PATH=~/.cargo/bin:$PATH +export PATH=~/perl5/bin:$PATH + +export PATH=~/.local/bin:$PATH +export PATH=~/.config/i3/scripts:$PATH diff --git a/zsh/.zshrc b/zsh/.zshrc index 3220806..0433c44 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,15 +1,8 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH -export GOPATH="~/go"; -export PATH=$GOPATH/bin:$PATH +# $PATH is adapted in ~/.profile -export PATH=~/.config/i3/scripts:$PATH -export PATH=/opt/dart-sdk/bin:$PATH -export PATH=~/dev/flutter/bin:$PATH -export PATH=~/.emacs.d/bin:$PATH -export PATH=~/.cargo/bin:$PATH -export PATH=~/perl5/bin:$PATH [ -f "~/.ghcup/env" ] && source "~/.ghcup/env" # ghcup-env PERL5LIB="~/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; @@ -90,7 +83,7 @@ export ZSH="$HOME/.oh-my-zsh" # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( - zsh-z + z web-search dirhistory # colored-man-pages @@ -108,7 +101,7 @@ export VISUAL=/usr/bin/nvim source $ZSH/oh-my-zsh.sh -alias vi="nvim" +alias vim="nvim" alias ls="ls --color" alias grep="grep --color" alias la="ls -Alh --color"