From 06914aff2b0011d41bc50447965a8d7c6ef52c9b Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 19 Jun 2023 11:19:19 +1000 Subject: precision fixes - Adding org-jira - Also fixed getting builders in buildbot - Adding gdb-mi and gud - Adding gdb and shell configs - Also mariadb dev related stuff - A few more modes - some more updates --- misc/.bashrc | 16 +++++++++++++--- misc/bin/gdb-mi.sh | 2 ++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 misc/bin/gdb-mi.sh (limited to 'misc') diff --git a/misc/.bashrc b/misc/.bashrc index 976451d..3212c87 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -9,6 +9,8 @@ esac export EDITOR="emacsclient -c -a emacs" # $EDITOR opens in terminal export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI mode +export LC_ALL="en_AU.utf8" + # Shorter version of a common command that it used herein. _checkexec () { @@ -20,7 +22,11 @@ source ~/.bashrc_local ## prompts # git prompt -source /usr/share/git/completion/git-prompt.sh +if [[ -f /usr/share/git/completion/git-prompt.sh ]]; then + source /usr/share/git/completion/git-prompt.sh +elif [[ -f /etc/bash_completion.d/git-prompt ]]; then + source /etc/bash_completion.d/git-prompt +fi # prompt RESET="\[\033[0m\]" @@ -73,8 +79,6 @@ fi export MANPAGER="$PAGER" -export LC_ALL=en_GB.utf8 - # Enter directory and list contents cd () { @@ -137,6 +141,9 @@ alias cp='cp -iv' alias mv='mv -iv' alias rm='rm -iv' +# git +alias gcgrep='git log --pretty=format:"%h %ad - %an: %<(80,trunc)%s" | grep' + # pacman package manager if _checkexec pacman then @@ -175,6 +182,9 @@ then alias pcache0="sudo paccache -ruk0" # remove all cache fi +# from ~/.bashrc_local, more aliases +my_local_aliases + #ibus export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus diff --git a/misc/bin/gdb-mi.sh b/misc/bin/gdb-mi.sh new file mode 100644 index 0000000..39320b5 --- /dev/null +++ b/misc/bin/gdb-mi.sh @@ -0,0 +1,2 @@ +#!/bin/bash +gdb -i=mi "$@" -- cgit v1.2.3