summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-12-10 12:24:33 -0800
committerNicholas <nbnoll@eml.cc>2021-12-10 12:24:33 -0800
commit4a24aea754f058b913ca2d98343df23e25970a54 (patch)
treecbaf0401b5fbb2e77b2d14c2ba7bb98d10c126dc
parent6dab0641e31d692746be0e860ac380a9b4d13c0c (diff)
update bashrc
-rw-r--r--.bash_profile2
-rw-r--r--.bashrc39
2 files changed, 34 insertions, 7 deletions
diff --git a/.bash_profile b/.bash_profile
index 4e397a4..b39e740 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -2,7 +2,7 @@
export LC_CTYPE=en_US.UTF-8
# Setup environment
-export PATH="$HOME/u/bin":"$HOME/.local/bin":$PATH
+export PATH="$HOME/u/bin:$HOME/.local/bin:$PATH:$HOME/src/pangraph/bin"
export SHELL=/bin/bash
export MAILCAPS="$HOME/.config/mutt/mailcap"
diff --git a/.bashrc b/.bashrc
index a4adf6e..754139e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -21,22 +21,26 @@ alias lofi="mpv 'https://www.youtube.com/watch?v=5qap5aO4i9A' --no-video"
alias tmux='tmux -f $HOME/.config/tmux/config'
alias mail='neomutt'
-dbg() {
+dbg()
+{
command gdb -q "$@"
}
export dbg
# xbps aliasing
-log() {
+log()
+{
printf '%b%s %b%s%b %s\n' \
"$c1" "${3:-->}" "${c3}${2:+$c2}" "$1" "$c3" "$2" >&2
}
-warn() {
+warn()
+{
log "$1" "$2" "${3:-ERROR}"
}
-pkg() {
+pkg()
+{
subcmd="$1"
shift 1 # pop off first argument
case $subcmd in
@@ -46,6 +50,27 @@ pkg() {
query | q)
xbps-query "$@"
;;
+ configure | c)
+ xbps-reconfigure "$@"
+ ;;
+ src | s)
+ subcmd="$1"
+ case $subcmd in
+ install | i)
+ shift 1
+ (
+ cd "$HOME/opt/void-packages";
+ xi "$@"
+ )
+ ;;
+ *)
+ (
+ cd "$HOME/opt/void-packages";
+ ./xbps-src "$@"
+ )
+ ;;
+ esac
+ ;;
remove | r)
doas xbps-remove "$@"
;;
@@ -58,7 +83,6 @@ pkg() {
*)
warn "$subcmd" "unknown subcommand"
;;
-
esac
}
export -f pkg
@@ -74,9 +98,12 @@ g()
branch | b)
git branch "$@"
;;
- checkout | c)
+ checkout | co)
git checkout "$@"
;;
+ commit | c)
+ git commit "$@"
+ ;;
tag | t)
git tag "$@"
;;