-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbash_aliases
More file actions
58 lines (47 loc) · 1.82 KB
/
Copy pathbash_aliases
File metadata and controls
58 lines (47 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
#byobu configurations
export TERM=xterm-256color
#if [ -z "$_motd_listed" ]; then
# case "$TMUX_PANE" in
# %1) cat /run/motd.dynamic
# export _motd_listed=yes
# ;;
# *) ;;
# esac
#fi
# To get GPG signing working with git
export GPG_TTY=$(tty)
export grepip="grep -oE '\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b'"
# Neovim is the primary editor (replaces vim for daily use).
# The vim/ directory + vimrc provide the shared configuration (colors, autocmds,
# indentation rules, etc.) that both editors use for compatibility.
export VISUAL="nvim"
export EDITOR="$VISUAL"
# Convenience: typing 'vim' launches nvim. Real vim binary is still available
# at /usr/bin/vim (or command vim) if you ever need the classic behavior.
alias vim='nvim'
# some more ls aliases
alias ll='ls -alF'
alias lh='ls -alFh'
alias la='ls -A'
alias l='ls -CF'
# To handle wayland and launching graphical applications as root
alias gsuon='xhost si:localuser:root'
alias gsuoff='xhost -si:localuser:root'
# apt helpers
alias update="sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade"
alias cleanup='echo "Cleaning Up" && sudo apt -f install && sudo apt -y autoremove && sudo apt -y autoclean && sudo apt -y clean'
# Virtual Box helpers
alias mediavm='VBoxManage startvm "xubuntu-media-test" --type headless'
alias dockervm='VBoxManage startvm "xubuntu-docker-test" --type headless'
# VNC helpers
alias vncchromebook='vncserver :1 -geometry 1366x768 -depth 24'
# Exports for python virtualenvs
# Using uv for modern Python management
if [ -d ~/.local/bin ]; then
export PATH=$PATH:~/.local/bin
fi
#For aliases we don't want to check into git
#Things like path names and internal network information
if [ -f ~/.bash_aliases_private ]; then
. ~/.bash_aliases_private
fi