aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
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 "$@"