Last active
July 28, 2021 12:51
-
-
Save eberfreitas/4c8954a50b4f91811cf5d5540cc57ff1 to your computer and use it in GitHub Desktop.
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
# ALIASES | |
alias setup='cd ~/ && clear && tmux' | |
# asdf installs everything locally, so running sudo directly doesn't work | |
# this command uses the local path variable so you can access everything | |
# from the root user | |
alias mysudo='sudo -E env "PATH=$PATH"' | |
# git aliases | |
alias gs='git status -s' | |
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit' | |
# windows integration | |
alias explore='/mnt/c/Windows/explorer.exe .' | |
alias clip='/mnt/c/Windows/system32/clip.exe' | |
alias code='/mnt/c/Program\ Files/Microsoft\ VS\ Code/bin/code' | |
alias fdfind=fd | |
# FZF CONFIG | |
# makes fzf respect .gitignore when performing a search | |
# https://github.com/junegunn/fzf#respecting-gitignore | |
export FZF_DEFAULT_COMMAND='fd --type f' | |
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" | |
# X410 (X server) CONFIG | |
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 | |
# PATH | |
export PATH=$PATH:/home/eber/.asdf/installs/nodejs/15.5.0/.npm/bin | |
# export PATH=$PATH:/mnt/c/Program\ Files/Docker/Docker/resources/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment