123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- source /etc/bash.bashrc
-
- export GOROOT="/usr/local/go"
- export GOPATH="$HOME/go"
- export EDITOR="vim"
-
- # Path
-
- export PATH="$PATH:/usr/local/bin/matlab"
- export PATH="/usr/sbin:/sbin:/bin:/usr/games:$PATH"
- export PATH="$HOME/.cargo/bin:$PATH"
- export PATH="$HOME/.bin:$PATH"
- export PATH="$GOROOT/bin:$PATH"
- export PATH="$GOPATH/bin:$PATH"
- export PATH="$PATH:/bin"
- export PATH="$PATH:/home/brendan/.gem/ruby/2.5.0/bin"
- export PATH="$PATH:/home/brendan/terraform"
-
- # Shortcuts
-
- alias matlab="/usr/local/bin/matlab/matlab"
- alias spaces2tab='grep -Er "*+" --exclude-dir={.git,node_modules,vendor} --exclude="*.yml" --exclude="*.md" --exclude=".gitignore" | grep ":" | cut -d":" -f1 | sort -u | xargs sed -Ei "s/^ /\t/"'
- alias vpn='sudo openvpn --config ~/Documents/ccrypto-nl-tcp.ovpn.ovpn'
- alias pitivi='optirun flatpak run org.pitivi.Pitivi//stable'
- alias ffupdate='pacaur -S --noconfirm --noedit firefox-always-nightly'
- alias update='yaourt -Syua --noconfirm --ignore java-testng --ignore javahelp2 --ignore jgraphx --ignore scilab --ignore firefox-always-nightly --ignore postgresql --ignore postgresql-libs'
- alias backuphome='rsync --links --recursive --progress --exclude=".cache" $HOME/*'
- alias new-gb-project='mkdir src vendor bin pkg && git init && echo -e "_test\nbin\npkg\nvendor/src\nconfig.yaml\n*.db" > .gitignore'
- alias gocode-lookup='gocode set package-lookup-mode'
- alias osspawns1='openstack server create --key-name brendan --flavor eeb4ccc9-faa0-4afb-955e-6a0224f93055 --image 839d5704-2e75-481f-85d1-86cb07ef6ba4'
- alias osspawns1-ubuntu1604='openstack server create --key-name brendan --flavor eeb4ccc9-faa0-4afb-955e-6a0224f93055 --image 71b02300-b1d3-4956-bd5b-b99f3134fd10'
- alias osssh='openstack server ssh -4 --login brendan --private'
- alias osssh-ubuntu='openstack server ssh -4 --login ubuntu --private'
-
- alias l='ls'
- alias ll='ls -l --color=always'
- alias lll='ls -lisha --color=always'
- alias la='ls -la'
- alias ga='git add'
- alias gs='git status'
- alias gd='git diff'
- alias gc='git commit'
- alias gcm='git commit -m'
- alias gcSm='git commit -S -m'
- alias gcSam='git commit -S -am'
- alias gr='git rm'
- alias gco='git checkout'
- alias gl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
- alias gps='git push'
- alias gpl='git pull'
- alias s='sudo systemctl'
- alias log='sudo journalctl -u'
- alias logf='sudo journalctl -fu'
-
- #source /usr/share/nvm/init-nvm.sh
- alias nv7="nvm use --delete-prefix v7.10"
-
- # Matrix
-
- alias goneb="cd ~/Documents/matrix/go-neb && BIND_ADDRESS=:4050 BASE_URL=http://localhost:4050 DATABASE_TYPE=sqlite3 DATABASE_URL=go-neb.db?_busy_timeout=5000 bin/go-neb"
-
- ## Dendrite
-
- alias kafstart="/home/brendan/Documents/matrix/dendrite/kafka/bin/kafka-server-start.sh -daemon /home/brendan/Documents/matrix/dendrite/kafka/config/server.properties"
- alias denproxy='./bin/client-api-proxy \
- --bind-address ":8448" \
- --sync-api-server-url "http://localhost:7773" \
- --client-api-server-url "http://localhost:7771" \
- --media-api-server-url "http://localhost:7774" \
- --public-rooms-api-server-url "http://localhost:7775" \
- --tls-cert _test/federation_cert.pem \
- --tls-key _test/federation_key.pem'
- alias denmono='./bin/dendrite-monolith-server \
- --tls-cert "_test/federation_cert.pem" \
- --tls-key "_test/federation_key.pem"'
-
- ## Additional scripts (eg completion)
- for f in ~/.local/share/bash/*; do source $f; done
-
- # ROS
- if [[ -f /opt/ros/kinetic/setup.bash ]]; then
- source /opt/ros/kinetic/setup.bash
- source ~/catkin_ws/devel/setup.bash
- fi
-
- # Prompt
- function parse_git_dirty {
- [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*"
- }
- function parse_git_branch {
- git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\(\1$(parse_git_dirty)\)/"
- }
-
- COLOR_NONE='\[\e[00m\]'
- COLOR_LCYAN='\[\e[01;36m\]'
- COLOR_LYELLOW='\[\e[01;33m\]'
- COLOR_LMAGENTA='\[\e[01;35m\]'
- COLOR_LGRAY='\[\e[01;37m\]'
-
- PS1="${COLOR_LGRAY}[\t] ${COLOR_LCYAN}\u@\H${COLOR_NONE}:${COLOR_LMAGENTA}\w${COLOR_NONE} ${COLOR_LYELLOW}\$(parse_git_branch)${COLOR_NONE}$ "
-
- # Tilix VTE stuff
- if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
- source /etc/profile.d/vte.sh
- fi
-
- # Use bash-completion, if available
- [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion
-
- eval "$(direnv hook bash)"
|