-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_aliases.bash
More file actions
49 lines (32 loc) · 1.72 KB
/
Copy pathdot_aliases.bash
File metadata and controls
49 lines (32 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
alias -- +x='chmod +x'
# Start a proper python interpreter regarding the working user's environment on the current machine.
alias ipython='python -c "import IPython; IPython.terminal.ipapp.launch_new_instance()"'
alias ..='cd .. && pwd'
alias ...='cd ../.. && pwd'
alias ....='cd ../../.. && pwd'
alias .....='cd ../../../.. && pwd'
alias -- -='cd -'
alias ls='ls --color=auto'
# Show all files in the current working directory with their details.
alias la='ls -l --almost-all --classify --human-readable --group-directories-first'
alias grep='grep --color=auto'
# Create a new working session of the preferred file manager on the current machine.
alias mc='mc --color --nomouse --skin=modarin256'
# Create a new working session of the preferred process viewer on the current machine.
alias htop='htop --no-mouse --delay=10 --sort-key=PERCENT_MEM'
# Drop all previous output in the current interactive session.
alias dropout='echo -e -n "\\033c\\033[3J"'
# Show each path on a separate line where the current operating system will search for executables when running a command.
alias paths='echo -e "${PATH//:/\\n}"'
alias c='clear'
alias r='reset'
# Get information about the public network address assigned to the current machine.
alias myip='curl --disable "https://checkip.amazonaws.com"'
alias pyclean='find "${PWD}" -name "*.py[cod]" -o -name "__pycache__" -exec rm --force --recursive {} +'
# Copy the provided text data to the system clipboard.
alias pbcopy='xclip -selection clipboard -in'
# Paste the saved text data from the system clipboard on the current machine.
alias pbpaste='xclip -selection clipboard -out'
# Trim new lines and copy data to the system clipboard.
alias copyline='tr --delete "\\n" | pbcopy'
alias open='xdg-open'