Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: falconindy/dotfiles
base: b0ec70d416
...
head fork: falconindy/dotfiles
compare: 2431bc6c87
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 22 additions and 11 deletions.
  1. +0 −1  .aliases
  2. +20 −9 .functions
  3. +2 −1  .profile
View
1  .aliases
@@ -22,7 +22,6 @@ alias randbg='feh --bg-scale $(randomWallpaper)'
alias rename='/usr/lib/perl5/vendor_perl/bin/rename'
alias space='LD_PRELOAD=$HOME/lib/libspace.so'
alias sudo='sudo '
-alias svnrm='svn up --set-depth exclude'
alias udevinfo='udevadm info -q all -n'
alias v='vim'
alias vgfull='valgrind --leak-check=full --show-reachable=yes'
View
29 .functions
@@ -17,7 +17,7 @@ cg2dot() {
confpac() {
[[ -f autogen.sh ]] || return 1
./autogen.sh
- dconfigure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-git-version --enable-debug "$@"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-git-version --enable-debug "$@"
for path in lib/libalpm src/{pacman,util}; do
ln -sf ../../config.h $path/config.h
done
@@ -27,11 +27,11 @@ pushd() {
builtin pushd "${@:-$HOME}"
}
-dconfigure() {
+./configure() {
if [[ -x /bin/dash ]]; then
CONFIG_SHELL=/bin/dash /bin/dash ./configure CONFIG_SHELL=/bin/dash "$@"
else
- ./configure "$@"
+ command ./configure "$@"
fi
}
@@ -73,18 +73,17 @@ deps() {
if [[ -f "$1" ]]; then
prog=$1
else
- prog=$(type -P $1)
- echo -e "$1 => $prog\n"
+ prog=$(type -P $1) && echo -e "$1 => $prog\n"
fi
- [[ -z $prog ]] && { echo "File not found"; return 1; }
- readelf -d $prog | sed -n '/NEEDED/s/.* library: \[\(.*\)\]/\1/p'
+ [[ -z $prog ]] && { echo "error: binary not found: $1"; return 1; }
+ objdump -p "$prog" | awk '/NEEDED/ { print $2 }'
}
depscan() {
[[ -z $1 ]] && { echo "usage: depscan <package>"; return; }
while read elfobj; do
- readelf -d $elfobj | sed -n 's|.*NEEDED.*\[\(.*\)\].*|'$elfobj' -- \1|p'
+ objdump -p "$elfobj" | awk '/NEEDED/ { print $2 }'
done < <(file $(pacman -Qlq $1) | sed -n '/ELF/s/^\(.*\):.*/\1/p') | nl
}
@@ -181,6 +180,14 @@ hex2dec() {
printf "%d\n" 0x$1
}
+hex2ip() {
+ printf '%d.%d.%d.%d\n' \
+ $(( 0x${1:6:2} )) \
+ $(( 0x${1:4:2} )) \
+ $(( 0x${1:2:2} )) \
+ $(( 0x${1:0:2} ))
+}
+
kc() {
eval $(keychain --eval id_rsa)
}
@@ -260,7 +267,7 @@ rlatest() {
}
sprunge() {
- curl -sF 'sprunge=<-' 'http://sprunge.us' < "${1:-/dev/stdin}"
+ curl -sF "sprunge=<${1:--}" 'http://sprunge.us'
}
sdstat() {
@@ -274,6 +281,10 @@ sdstat() {
systemctl status "${services[@]}"
}
+svnrm() {
+ svn up --set-depth exclude "$@" && rm -rf "$@"
+}
+
t() {
tmux -L main "${@:-attach}"
}
View
3  .profile
@@ -10,11 +10,12 @@ export GOROOT=$HOME/go
export GOBIN=$GOROOT/bin
# locale
+export LANG=en_US.UTF-8
export LC_COLLATE=C
export LC_NUMERIC=C
# path
-export PATH=$GOBIN:$HOME/bin:$PATH
+PATH=$GOBIN:$HOME/bin:$PATH
export CDPATH=.:/mnt/Gluttony:/mnt/Haven
[ -n $BASH -a -r ~/.bashrc ] && . ~/.bashrc

No commit comments for this range

Something went wrong with that request. Please try again.