From 19b94fc18a31653119b3e09d81090e482a53e8ba Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 25 Apr 2015 21:51:54 -0400 Subject: [PATCH] initial commit, moving to git --- .aliases | 38 ++++++++++++++++++++++++++++++++++++++ .aliases.arch | 21 +++++++++++++++++++++ .aliases.debian | 21 +++++++++++++++++++++ .zlogin | 1 + .zlogout | 1 + .zprezto | 1 + .zpreztorc | 1 + .zprofile | 1 + .zshenv | 1 + .zshrc | 1 + 10 files changed, 87 insertions(+) create mode 100644 .aliases create mode 100644 .aliases.arch create mode 100644 .aliases.debian create mode 120000 .zlogin create mode 120000 .zlogout create mode 160000 .zprezto create mode 120000 .zpreztorc create mode 120000 .zprofile create mode 120000 .zshenv create mode 120000 .zshrc diff --git a/.aliases b/.aliases new file mode 100644 index 0000000..3a5ee1c --- /dev/null +++ b/.aliases @@ -0,0 +1,38 @@ +#-*- mode: sh; -*- + +## fasd +alias j='fasd_cd -d' +alias jj='fasd_cd -d -i' +alias js='fasd_cd -d -i' +alias fe='f -e "emacsclient"' +alias fet='f -e "emacsclient -t"' +alias fec='f -e "emacsclient -c"' +alias fecn='f -e "emacsclient -c -n"' + +## Disable Globbing (for some things) +alias nmap="noglob nmap" + +## Other Aliases +alias -g N='notify-send "Command finished"' +mcd() { mkdir -p "$1" && cd "$1"; } +alias git-yolo='git commit -am "`curl -s http://whatthecommit.com/index.txt`"' +alias backup="rdiff-backup --exclude-globbing-filelist /home/adam/Documents/backuplist.txt /home/adam/" #target +alias pc='pass -c' + +## TodoTxt +alias t='todo.sh' +alias hw='t hw' +alias hwr="hw rel" + +## Emacs aliases +alias e="emacsclient" +alias en="e -n" +alias et="e -t" +alias ec="e -c" +alias ecn="ec -n" + +## Weechat on adm +alias aweechat='ssh adm tmux a -t weechat' + +#quick alias for enabling bluetooth +alias ebluetooth="sudo modprobe btusb;blueman-manager" diff --git a/.aliases.arch b/.aliases.arch new file mode 100644 index 0000000..2c12e0c --- /dev/null +++ b/.aliases.arch @@ -0,0 +1,21 @@ +# pacman +alias pup='apacman -Syu --noedit --purgebuild' +alias pr='sudo apacman -Rs' +alias prc='pr -c' +alias pi='apacman --purgebuild' +alias pin='pi --noedit --noconfirm' +alias pis='pi -S' +alias pins='pin -S' +piro() { #remove orphans + if [[ ! -n $(apacman -Qdt) ]]; then + echo "No orphans to remove." + else + apacman -Rns $(pacman -Qdtq) + fi +} + +compdef apacman=pacman + +alias gup='updateGit.sh' + +alias up='pup' diff --git a/.aliases.debian b/.aliases.debian new file mode 100644 index 0000000..2d6e776 --- /dev/null +++ b/.aliases.debian @@ -0,0 +1,21 @@ +## Various update aliases +### apt +alias ai="noglob sudo apt-get install" +alias aup="sudo apt-get update; sudo apt-get upgrade" +alias adup="sudo apt-get dist-upgrade" +alias aclean="sudo apt-get autoremove; sudo apt-get autoclean" +alias apt="noglob apt" + +### mr +alias mup="mr -mj update" +alias cmup="mup 2>&1|sed -ur 's/mr update: \/(.*)/'\"$(tput bold)\1$(tput sgr0)\"'/g +/mr update: command failed/c'\"$(tput setf 4)mr update: command failed$(tput sgr0)\"' +s/\/?home\/adam/~/g +/Already up-to-date/d +/Tree is up to date/d +/Updating '\''\.'\'':/d +/At revision/d +/^$/d'" + +### general +alias up="(aup;aclean;cmup) | tee /tmp/up.log" diff --git a/.zlogin b/.zlogin new file mode 120000 index 0000000..5765ab0 --- /dev/null +++ b/.zlogin @@ -0,0 +1 @@ +.zprezto/runcoms/zlogin \ No newline at end of file diff --git a/.zlogout b/.zlogout new file mode 120000 index 0000000..8f76c74 --- /dev/null +++ b/.zlogout @@ -0,0 +1 @@ +.zprezto/runcoms/zlogout \ No newline at end of file diff --git a/.zprezto b/.zprezto new file mode 160000 index 0000000..c98da90 --- /dev/null +++ b/.zprezto @@ -0,0 +1 @@ +Subproject commit c98da90662a11e7ac1e046ccd6a99edd21e68312 diff --git a/.zpreztorc b/.zpreztorc new file mode 120000 index 0000000..fb46b62 --- /dev/null +++ b/.zpreztorc @@ -0,0 +1 @@ +.zprezto/runcoms/zpreztorc \ No newline at end of file diff --git a/.zprofile b/.zprofile new file mode 120000 index 0000000..b085555 --- /dev/null +++ b/.zprofile @@ -0,0 +1 @@ +.zprezto/runcoms/zprofile \ No newline at end of file diff --git a/.zshenv b/.zshenv new file mode 120000 index 0000000..2ffffef --- /dev/null +++ b/.zshenv @@ -0,0 +1 @@ +.zprezto/runcoms/zshenv \ No newline at end of file diff --git a/.zshrc b/.zshrc new file mode 120000 index 0000000..ff7ceae --- /dev/null +++ b/.zshrc @@ -0,0 +1 @@ +.zprezto/runcoms/zshrc \ No newline at end of file