mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
{bash,zsh}rc: workaround tmux/nvim crash
This commit is contained in:
parent
73572f1294
commit
cb377b5264
12
rc/bashrc
12
rc/bashrc
@ -301,8 +301,8 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
|
||||
|
||||
##### Aliases RJ706I #####
|
||||
|
||||
# To get sudo work with aliases.
|
||||
alias sudo="\sudo "
|
||||
# To get sudo work with aliases. And workaround nvim/tmux crash.
|
||||
alias sudo="\sudo --preserve-env=tmux"
|
||||
|
||||
# Moving between directories:
|
||||
alias ..="cd .."
|
||||
@ -442,9 +442,11 @@ alias ex-tarbz2="tar xfvj "
|
||||
# To have less handle ls colours
|
||||
alias less="less -R "
|
||||
|
||||
# "su -" with/without sudo
|
||||
alias ssu="sudo su -"
|
||||
alias suu="su -"
|
||||
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
|
||||
# instead.
|
||||
alias ssu="sudo -i"
|
||||
alias sui="sudo -i"
|
||||
#alias suu="su -"
|
||||
|
||||
# systemd runlevels/targets
|
||||
alias currenttargets="systemctl list-units --type=target"
|
||||
|
12
rc/zshrc
12
rc/zshrc
@ -267,8 +267,8 @@ PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS;
|
||||
|
||||
##### Aliases RJ706I #####
|
||||
|
||||
# To get sudo work with aliases.
|
||||
alias sudo="\sudo "
|
||||
# To get sudo work with aliases. And workaround nvim/tmux crash.
|
||||
alias sudo="\sudo --preserve-env=tmux"
|
||||
|
||||
# Moving between directories:
|
||||
alias ..="cd .."
|
||||
@ -436,9 +436,11 @@ alias history="history -i "
|
||||
# To have less handle ls colours
|
||||
alias less="less -R "
|
||||
|
||||
# "su -" with/without sudo
|
||||
alias ssu="sudo su -"
|
||||
alias suu="su -"
|
||||
# "su -" with/without sudo. Conflicts with SailfishOS, to learn to use sui
|
||||
# instead.
|
||||
alias ssu="sudo -i"
|
||||
alias sui="sudo -i"
|
||||
#alias suu="su -"
|
||||
|
||||
# Who command which I use with Conky
|
||||
alias cwho="who -H -w -u"
|
||||
|
Loading…
Reference in New Issue
Block a user