This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ga='g a' | |
alias gb='g b' | |
alias gbi='g bi' | |
alias gc='g c' | |
alias gcl='g cl' | |
alias gco='g co' | |
alias gd='g d' | |
alias gf='g f' | |
alias gg='g g' | |
alias gi='g i' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /etc/debian-release ]; then | |
# Apt-get | |
alias clean='sudo apt-get clean' | |
alias purge='sudo apt-get purge' | |
alias search='sudo apt-get search' | |
alias update='sudo apt-get update' | |
alias remove='sudo apt-get remove' | |
alias upgrade='sudo apt-get upgrade' | |
alias install='sudo apt-get install' | |
alias autoremove='sudo apt-get autoremove' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias untar='tar -zxvf' | |
alias untarxz='tar -xJf' | |
alias pbcopy='xclip -selection clipboard' # OSX compatibility | |
alias pbpaste='xclip -selection clipboard -o' # OSX compatibility | |
alias orphans='sudo pacman -Rs $(pacman -Qdtq)' # removes orphan packages from Archlinux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls='ls -X -h --group-directories-first --color' | |
alias grep='grep --color=auto' | |
alias gedit='subl' | |
alias g='git' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="agnoster" | |
COMPLETION_WAITING_DOTS="true" | |
DISABLE_CORRECTION="true" | |
HISTCONTROL=ignoredups:ignorespace | |
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets root) | |
source $ZSH/oh-my-zsh.sh | |
export PATH=$PATH:/usr/sbin:/sbin:/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sudofix (fixes aliases not being able to run when using sudo) | |
alias sudo='sudo ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins=(gitfast last-working-dir ssh-agent bower nvm gem node npm rbenv themes grunt autoenv zsh-syntax-highlighting command-not-found) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// returns true if your browser supports calc() | |
myapp.checkCalc = function (prefix = '') { | |
var el = document.createElement('div'); | |
el.style.cssText = prefix + 'width: calc(1px);'; | |
return !!el.style.length; | |
}; | |
// returns true if your browser supports any version of calc(), prefixed or not | |
myapp.checkAllCalc = function (prefix = '') { | |
return myapp.checkCalc('-webkit-') || myapp.checkCalc('-moz-') || myapp.checkCalc(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F12:: | |
DetectHiddenWindows, on | |
If WinExist("posh~git") OR WinExist("Windows PowerShell") | |
{ | |
If WinActive("posh~git") OR WinActive("Windows PowerShell") | |
{ | |
WinHide | |
if(temptitle="") | |
WinActivate ahk_class Shell_TrayWnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clear screen | |
cls | |
# Get user | |
$USER = $PWD.toString() | |
$USER = $USER.Remove(0, 9) | |
# Get hostname | |
$HOSTNAME = HOSTNAME.exe |