diff options
| author | kj-sh604 | 2025-07-18 12:40:50 -0400 |
|---|---|---|
| committer | kj-sh604 | 2025-07-18 12:40:50 -0400 |
| commit | 30c1323d6f186bcb95f1272cf2f8df97171566ca (patch) | |
| tree | dec3014934d271e3ebd19fa19be3b7cea6f07d68 /.config | |
| parent | 1e204d36c1fab9884f65618ccca019d8cd5f9386 (diff) | |
refactor: update shell configs
only the POSIX-ish shells
Diffstat (limited to '.config')
| -rw-r--r-- | .config/shell/.bashrc | 36 | ||||
| -rw-r--r-- | .config/shell/.zshrc | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.config/shell/.bashrc b/.config/shell/.bashrc index f9bee38..af41326 100644 --- a/.config/shell/.bashrc +++ b/.config/shell/.bashrc @@ -13,10 +13,14 @@ ensure_directory_and_file() { # source personal posix functions source_if_exists ~/.config/shell/posix-functions/create_POSIX_dotenv.sh source_if_exists ~/.config/shell/posix-functions/POSIX_open.sh +source_if_exists ~/.zprofile # git prompt source_if_exists ~/.config/shell/git-prompt.sh export GIT_PS1_SHOWDIRTYSTATE=1 +export GIT_PS1_SHOWSTASHSTATE=1 +export GIT_PS1_SHOWUNTRACKEDFILES=1 +export GIT_PS1_SHOWUPSTREAM=1 if [[ $- != *i* ]] ; then return @@ -87,3 +91,35 @@ done unset use_color sh export HISTFILE="$XDG_STATE_HOME"/shell/history + +set -o vi + +bind -m vi-command '"\C-e": edit-and-execute-command' +bind -m vi-insert '"\C-e": edit-and-execute-command' + +# aliases +command which eza >/dev/null 2>&1 && alias ls="eza" +command which alsi >/dev/null 2>&1 && alias neofetch="alsi" +alias S="cd ~/.local/bin && ls" +alias c="cal" +alias d="disown" +alias dots="cd ~/.local/share/.dotfiles/" +alias egrep='grep -E' +alias fgrep='grep -F' +alias grep='grep --color=auto' +alias ks="killall screen" +alias la='ls -lah' +alias lgit="lazygit" +alias p="paru" +alias pu="paru -Syu --noconfirm" +alias s="screen" +alias sls="screen -ls" +alias sr="screen -r" +alias t="timedatectl" +alias uncommit="git reset --soft HEAD^" +alias w="curl wttr.in" +alias x="startx" +alias yt-best="youtube-dl -cif 'bestvideo+bestaudio/best'" +alias yt-m4a="youtube-dl -cif 'bestaudio[ext=m4a]'" +alias yt-mp4="youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'" +alias yt-webm="youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'" diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc index cfdc504..c2f6f4d 100644 --- a/.config/shell/.zshrc +++ b/.config/shell/.zshrc @@ -41,6 +41,7 @@ SAVEHIST=9999999 alias fgrep='grep -F' alias grep='grep --color=auto' alias ks="killall screen" + alias la='ls -lah' alias lgit="lazygit" alias p="paru" alias pu="paru -Syu --noconfirm" |
