-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
68 lines (52 loc) · 2.01 KB
/
aliases
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
#------------------------------------------------------------------------------#
#Title :Aliases
#Author :Ivan Batistic
#Date :01/2023
#Version :0.1
#Bash_version :5.1.16(1)-release
#Description :My collection of bash shell aliases
#------------------------------------------------------------------------------#
# Get rid of command not found
alias cd..='cd ..'
# Faster moving around
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
# Calculator with math support
alias bc='bc -l'
# Live monitoring sensors output
alias temp='watch sensors'
# Changing bash PS1 prompt
alias bs='export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ "'
alias bss='export PS1="\[\033[01;34m\]\W\[\033[00m\] > "'
alias bbs='export PS1="\n\[\033[01;34m\][\w]\n\[\033[01;32m\] -> \[\033[00m\]"'
# Reset it back
alias br='export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ "'
# Gnome-open is xdg-open on newer versions of ubuntu
alias gnome-open='xdg-open'
# Use color diff instead of diff
alias diff='colordiff'
# Active (open) TCP/UDP ports
alias ports='netstat -tulanp'
# Memory info
alias memInfo='free -m -l -t'
# Show memory demanding apps
alias psMemInfo='ps auxf | sort -nr -k 4 | head -10'
# Show cpu demanding apps
alias psCpuInfo='ps auxf | sort -nr -k 3 | head -10'
# Emaca in terminal
alias e='emacs-gtk -nw'
# gtime is alias on mac
alias gtime='/usr/bin/time'
# Program aliases, depends on local installation
#alias pycharm='/home/$USER/opt/pycharm-2023.3.4/bin/pycharm.sh & disown'
#alias fe40='source $HOME/foam/foam-extend-4.0/etc/bashrc'
#alias fe41='source $HOME/foam/foam-extend-4.1/etc/bashrc'
#alias fe50='source $HOME/foam/foam-extend-5.0/etc/bashrc'
#alias of9='source /opt/openfoam9/etc/bashrc'
#alias parafoam='touch log.foam; paraview log.foam'
#------------------------------------------------------------------------------#