Below are my dotfiles. They contain aliases and other handy commands for making life easier in a Linux development environment. I hope to customize a Mac version soon.
- Third Party Softare Used
- Aliases
- Environment Configuration
- pip-review
- managing pip packages
- GRC (coloring)
- colorization
- dotfiles-framework
- managing dotfiles
Alias | Command | Notes |
---|---|---|
.. |
cd .. |
- |
... |
cd ../.. |
- |
.... |
cd ../../.. |
- |
..... |
cd ../../../.. |
- |
.3 |
cd ../.. |
- |
.4 |
cd ../../.. |
- |
.5 |
cd ../../../.. |
- |
~ |
cd ~ |
- |
c |
clear |
- |
cp |
cp -iv |
prompt before overwrite |
ll |
ls -alGF |
long listing, no group |
llm |
ls -alGF --block-size=m |
long listing, no group with MB block size |
la |
ls -A |
long listing, no .. or . |
l |
ls -CF |
append indicator, list entries by column |
lr |
ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less |
full recursive directory listing |
mkdir |
mkdir -pv |
make necessary parent directories |
mkd(DIR) |
mkdir -p "$1" && cd "$1" |
make dir and step inside |
mv |
mv -iv |
prompt before overwrite |
ff(FILENAME) |
/usr/bin/find . -name "$@" |
find file under current directory |
ffs(STR) |
/usr/bin/find . -name "$@"'*' |
find file whose name starts with STR |
ffe(STR) |
/usr/bin/find . -name '*'"$@" |
find file whose name ends with STR |
lsock |
sudo lsof -i -P |
list of all open sockets |
lsock_t |
sudo lsof -i -P | grep TCP |
list of all open TCP sockets |
lsock_u |
sudo lsof -i -P | grep UDP |
list of all open UDP sockets |
openPorts |
sudo lsof -i | grep LISTEN |
list of all open ports |
allPorts |
sudo netstat -tulanp | grep LISTEN |
detailed list of all open ports |
firewall |
sudo iptables -L -n -v --line-numbers |
list all firewall rules |
updateapt |
sudo apt-get update && sudo apt-get upgrade |
update and upgrade at the same time |
zipf(DIR) |
zip -r "$1".zip "$1" |
zip directory DIR |
ii |
- | displays system information (users logged in, machine status, etc.) |
Alias | Command | Notes |
---|---|---|
memhogs |
ps auxf | sort -nr -k 4 | head -10 |
|
cpuhogs |
``ps auxf | sort -nr -k 3 | head -10 |
I am an avid user of tmux. Below are some aliases which make the software more useful for me:
Alias | Command | Notes |
---|---|---|
tat |
tmux att -t |
attach session |
tls |
tmux ls |
list sessions |
tkill |
tmux kill-session -t |
kill session |
trename |
tmux rename-session -t |
rename session |
tstart |
tmuxp load |
load session |
treload |
tmux source-file ~/.tmux.conf |
reload tmux from source |
\\TODO
- tmux-cpu
- tmux-gitbar
- tmux-sidebar
- zoom
- Adds
C-a x
to toggle zooming of pane to fullscreen
- Adds
Below are some Python-related aliases
Alias | Command | Notes |
---|---|---|
python3 |
python3.8 |
forces Python 3.8 shell |
pip3 |
python3.8 -m pip |
forces pip 3.8 |
pip |
python2.7 -m pip |
forces pip 2.7 |
preview |
pip-review |
pip status using pip-review |
pupdate |
pip-review --auto |
update all pip packages automatically |
pupdate_i |
pip-review --interactive |
update pip packages (step through one-by-one) |
The following commands are colored using GRC when available (all aliases not listed):
as
diff
dig
g++
gas
gcc
head
ifconfig
ld
make
mount
netstat
ping
ps
tail
traceroute
I use the following software for various development environments:
- Sublime Text 3
See
- Sublime SFTP - SFTP Client
- GitGutter - Shows git diff in gutter
- Sublime-Notes - Syntax highlighting for notetaking
- SublimeLinter - Code linting
- TrailingSpaces - Highlight and delete trailing whitespace
- MarkdownLivePreview - Preview markdown
Python
- AutoPEP8 - *Automatic PEP-8 formatting
- Jedi - Python auto-completion
- SublimeLinter-flake8 SublimeLinter plugin for flake8
Prolog
- Prolog - Prolog syntax highlighting