aliases (1084B)
1 # .aliases 2 3 # add colour 4 if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin ]]; then 5 alias ls='ls -FG' 6 elif [[ "$(uname)" == Linux ]]; then 7 alias ls='ls -F --color=auto' 8 fi 9 if [[ "$(uname)" == FreeBSD || "$(uname)" == Darwin || "$(uname)" == Linux ]]; then 10 alias grep='grep --color=auto' 11 alias fgrep='fgrep --color=auto' 12 alias egrep='egrep --color=auto' 13 fi 14 alias ag='ag --color-line-number "30;33" --color-path "30;32" --color-match "1;31"' 15 16 # some useful aliases 17 alias h='fc -l' 18 alias j=jobs 19 alias m="$PAGER" 20 alias ll='ls -lA' 21 alias l='ls -l' 22 alias g='egrep -i' 23 24 # be paranoid 25 alias cp='cp -ip' 26 alias mv='mv -i' 27 alias rm='rm -i' 28 29 # work 30 alias fbug='gh -R flutter/flutter issue' 31 32 CC_FLUTTER="$HOME/Developer/flutter/engine/src/compile_commands.json" 33 alias cc_host="rm -f $CC_FLUTTER && ln -s out/host_debug_unopt_arm64/compile_commands.json $CC_FLUTTER" 34 alias cc_ios="rm -f $CC_FLUTTER && ln -s out/ios_debug_unopt/compile_commands.json $CC_FLUTTER" 35 alias cc_sim="rm -f $CC_FLUTTER && ln -s out/ios_debug_sim_unopt_arm64/compile_commands.json $CC_FLUTTER" 36 unset CC_FLUTTER