You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.4 KiB
Bash

3 years ago
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
ect() {
if [ "$#" -ne 0 ]; then
echo "$1" | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
else
cat /sys/devices/system/cpu/intel_pstate/no_turbo
fi
}
3 years ago
[ -z ${WSLENV+x} ] || export PATH="${PATH:+"$PATH:"}$HOME/bin"
# base16 config
#BASE16_SHELL="$HOME/.config/base16-shell/"
#[ -n "$PS1" ] && \
# [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
# source "$BASE16_SHELL/profile_helper.sh"
3 years ago
# Aliases
# general aliases
alias ls='ls --color=auto'
alias vim='nvim'
# git aliases
alias ga='git add'
alias gcm='git commit -m'
alias gs='git status'
alias gp='git push'
# config aliases
alias vimc='nvim ~/.config/nvim/init.lua'
alias wmc='nvim ~/.config/sway/config'
3 years ago
# asus tools aliases
alias sup='supergfxctl'
PS1='\[\e[1;33m\]\u ($HOSTNAME) \[\e[1;32m\]\w \[\e[0m\]$(parse_git_branch)\n\[\e[35m\]\[\e[1m\]\$ \[\e[0m\]'
3 years ago
# export pip path
export PATH=$PATH:~/.local/bin
3 years ago
# android studio stuff
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# flutter
export FLUTTER_HOME=$HOME/flutter
export PATH=$PATH:$FLUTTER_HOME/bin
export CHROME_EXECUTABLE=brave