Compare commits

...

5 commits

Author SHA1 Message Date
c47 3d5cefd190 Add 'nheko' class to manageHook
Added nheko to manageHook to shift it to WS3 as done with the other chat
clients as well.
2024-02-19 06:58:09 +01:00
c47 402cb0caf4 Add support for named (read: hashed) directories
Added support for named directories to my zsh config.
This is a way to access directories under shortened names
conveniently.
2024-02-19 06:55:50 +01:00
c47 2325604f1c Move ssh-agent to /run/user and add 'nix' to $PATH
Move my ssh-agent.sock to /run/user/<ID>/

Added ~/.nix-profile/bin to ${PATH}
2024-02-19 06:50:52 +01:00
c47 9c38cd7801 Correct set-links.sh
Configured a wrong path for zsh-files in set-links.sh - forgot the zsh/
subfolder. This commit brings the needed changes.
2024-02-19 06:43:40 +01:00
c47 8c7af67d01 Change set-links.sh accordingly to b1a03cb2df
In commit b1a03cb2df ~/.gitconfig got moved to ~/.config/git/config,
but set-links.sh didn't got updated. This commit makes up for it.
2024-02-19 06:38:02 +01:00
4 changed files with 43 additions and 5 deletions

View file

@ -18,9 +18,9 @@ for config in ${WORKING_DIR}/bash/*; do
fi
done
# Gitconfig
if [[ ! -L ${HOME}/.gitconfig ]]; then
ln -s ${WORKING_DIR}/gitconfig .gitconfig 2>/dev/null
# Git
if [[ ! -L ${HOME}/.config/git ]]; then
ln -s ${WORKING_DIR}/git/ .config/git 2>/dev/null
fi
@ -58,9 +58,12 @@ if [[ ! -d ${HOME}/.zsh ]]; then
fi
if [[ ! -L ${HOME}/.zshenv ]]; then
ln -s ${WORKING_DIR}/zshenv .zshenv 2>/dev/null
ln -s ${WORKING_DIR}/zsh/zshenv .zshenv 2>/dev/null
fi
if [[ ! -L ${HOME}/.zshrc ]]; then
ln -s ${WORKING_DIR}/zshrc .zshrc 2>/dev/null
ln -s ${WORKING_DIR}/zsh/zshrc .zsh/.zshrc 2>/dev/null
fi
if [[ ! -L ${HOME}/.zsh/.zdirhashes ]]; then
ln -s ${WORKING_DIR}/zsh/zdirhashes .zsh/.zdirhashes 2>/dev/null

View file

@ -19,6 +19,7 @@ myManageHook = composeAll . concat $
, [ title =? "DailyShell" --> doShift "2" ]
, [ className =? "Signal" --> doShift "3" ]
, [ className =? "SchildiChat" --> doShift "3" ]
, [ className =? "nheko" --> doShift "3" ]
, [ className =? "Skype" --> doShift "3" ]
, [ className =? "easyeffects" --> doShift "9" ]
, [ className =? "Brave-browser" --> doShift "7" ]

22
zsh/zdirhashes Normal file
View file

@ -0,0 +1,22 @@
hash -d c=~/.config
hash -d ca=~c/awesome
hash -d cg=~c/git
hash -d cx=~c/xmonad
hash -d d=/data
hash -d db=~d/books
hash -d dd=~d/dokumentumok
hash -d dm=~d/music
hash -d g=~/gits
hash -d gp=~g/priv
hash -d gpd=~g/priv/dotfiles
hash -d gpw=~g/priv/www.nixre.net-sources
hash -d l=~/.local
hash -d lb=~l/bin
hash -d ll=~l/lib
hash -d lsc=~l/scripts
hash -d lss=~l/share
hash -d z=~/.zsh

View file

@ -21,3 +21,15 @@ bindkey '\e.' insert-last-word
if [[ -f ${ZDOTDIR}/.zaliases ]]; then
source ${ZDOTDIR}/.zaliases
fi
export PATH=${HOME}/.local/bin:${HOME}/.nix-profile/bin:${PATH}
export SSH_AUTH_SOCK=/var/run/user/$(echo $UID)/ssh-agent.sock
if [[ ! $(pidof ssh-agent) ]]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK})
fi
if [[ -f ${ZDOTDIR}/.zdirhashes ]]; then
source ${ZDOTDIR}/.zdirhashes
fi