aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-06-19 11:19:19 +1000
committerYuchen Pei <id@ypei.org>2023-06-19 22:41:03 +1000
commit06914aff2b0011d41bc50447965a8d7c6ef52c9b (patch)
tree278047a8c1c02347d5cf7a0119ac4cc373e3e191 /misc
parentf06c1c12456a598b7007a6ef08306051d0d49064 (diff)
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
Diffstat (limited to 'misc')
-rw-r--r--misc/.bashrc16
-rw-r--r--misc/bin/gdb-mi.sh2
2 files changed, 15 insertions, 3 deletions
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 "$@"