From d78b602efc5b525f178b8e1b265b89f6dfda1580 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 9 Apr 2022 18:46:47 +0200 Subject: Better keyrepeat rate settings, added nvim live grep shortcut --- config/zsh/.zshrc | 2 +- config/zsh/aliases.zsh | 2 +- config/zsh/zprofile | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'config/zsh') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 92c55c5..8ee4622 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -9,7 +9,7 @@ case $(tty) in /dev/tty[1-9]) # %~ path ('~' if $HOME) # %B/%b start/stop bold - # %B/%b start/stop color + # %F/%f start/stop color # shellcheck disable=SC2039,SC3003 NEWLINE=$'\n' export PROMPT="${NEWLINE}%B%F{blue}%~%f${NEWLINE}%F{red}> %f%b" diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index 7832558..7488ac1 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -35,7 +35,7 @@ alias ta='tree -a' alias t1='tree -L 1' alias t2='tree -L 2' alias t3='tree -L 3' -alias ti="tree --matchdirs -I __pycache__ -I node_modules -I '*.o'" +alias ti="tree --matchdirs -I __pycache__ -I node_modules -I '*.o' -I build" # man alias ma="man" diff --git a/config/zsh/zprofile b/config/zsh/zprofile index b64522f..c9466d1 100755 --- a/config/zsh/zprofile +++ b/config/zsh/zprofile @@ -81,6 +81,9 @@ export CLOUT_SYNC_PATH="${XDG_DATA_HOME:-$HOME/.sync}/$CLOUT_SYNC_DIR" if [ "$(uname)" = 'Linux' ] && [ "$(tty)" = '/dev/tty1' ] then - startx "$XDG_CONFIG_HOME/x11/xinitrc" + # https://wiki.archlinux.org/title/Xorg/Keyboard_configuration + # setting the keyrepeat delay and interval here as the default ones + # since some applications reset the those if we use xset r rate 200 30 instead + startx "$XDG_CONFIG_HOME/x11/xinitrc" -- -ardelay 200 -arinterval 30 poweroff fi -- cgit From 1157a7ff99dae87d783dbac2a3b06b48d3c0b091 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 13 Aug 2022 16:29:49 +0200 Subject: Removing conda and opam from zshrc --- config/zsh/.zshrc | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'config/zsh') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 57b49c5..39dd01b 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -108,33 +108,3 @@ if [ "$(uname)" = 'Linux' ] then . /usr/share/doc/pkgfile/command-not-found.zsh fi - -# upload-config() { -# scp -qr "$HOME/.vim" cce424r@ds-train: -# scp -q "$HOME/.config/vim/vimrc" cce424r@ds-train:.vimrc -# -# scp -qr "$HOME/.vim" cce424r@ds-attic: -# scp -q "$HOME/.config/vim/vimrc" cce424r@ds-attic:.vimrc -# } - -# >>> conda initialize >>> -# !! Contents within this block are managed by 'conda init' !! -__conda_setup="$('/usr/local/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" -# shellcheck disable=SC2181 -if [ $? -eq 0 ]; then - eval "$__conda_setup" -else - if [ -f "/usr/local/anaconda3/etc/profile.d/conda.sh" ]; then - . "/usr/local/anaconda3/etc/profile.d/conda.sh" - else - export PATH="/usr/local/anaconda3/bin:$PATH" - fi -fi -unset __conda_setup - -if [ -f "/usr/local/anaconda3/etc/profile.d/mamba.sh" ]; then - . "/usr/local/anaconda3/etc/profile.d/mamba.sh" -fi -# <<< conda initialize <<< - -eval "$(opam env)" -- cgit From d54e8f15d776e59b2f8b70bb94c5041509b391f0 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 5 Sep 2022 16:40:13 +0200 Subject: Added ros zsh setup, Added git branch alias --- config/zsh/.zshrc | 3 +++ config/zsh/aliases.zsh | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'config/zsh') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 39dd01b..dbaaa90 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -108,3 +108,6 @@ if [ "$(uname)" = 'Linux' ] then . /usr/share/doc/pkgfile/command-not-found.zsh fi + +export ROS_DOMAIN_ID=42 +. /opt/ros2/galactic/setup.zsh diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index d478fe3..a288c7f 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -70,8 +70,9 @@ alias gss='git status --short' alias gco='git checkout' alias gsta='git stash push' alias gstp='git stash pop' -alias grv="git remote -v" -alias gra="git remote add" +alias grv='git remote -v' +alias gra='git remote add' +alias gb='git branch' gpa() { branch="$1" [ -z "$branch" ] && branch=$(git branch | grep '^\* .*$' | cut -d ' ' -f 2) -- cgit