Skip to content

Instantly share code, notes, and snippets.

@doct0rX
Created August 24, 2018 14:52
Show Gist options
  • Save doct0rX/f503ef28f80d57a7c85747d4244b37d4 to your computer and use it in GitHub Desktop.
Save doct0rX/f503ef28f80d57a7c85747d4244b37d4 to your computer and use it in GitHub Desktop.
This gist hosting some of my bashrc on my Kali machine.
# alis for opening Google Chrome from linux root user --kali
alias chr="gksu -u chromeuser google-chrome"
# alias for opening files from the CLI
alias open="nautilus"
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# this function for running VS Code Command line code as a root user on linux
# copy the code in your ~/.bashrc or
# ~/bash_profile and you can run the vscode editor typing [codee] and you're welcome to change the name of the fucntion;
# and if you have a better name or implementation for it leave it in a commnet below -- i'd be happy;
function codee() {
if [ -z "$1" ]
then
code . --use-data-dir=".";
else
code "$1" --user-data-dir=".";
fi
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment