Adjusted for updated nushell config specifications
Added global shortcuts for zellij Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -529,10 +529,9 @@ alias ll = ls -la
|
||||
alias la = ls -a
|
||||
alias q = exit
|
||||
alias e = emacsclient -t
|
||||
alias ekill = (pkill emacs; pkill emacsclient; emacs --daemon)
|
||||
alias picotik = picocom --b 115200 /dev/ttyUSB0
|
||||
alias xsel = xsel -ib
|
||||
alias nmap = nmap -T5 --min-parallelism 100 -Pn
|
||||
alias ekill = (pkill emacs;pkill emacsclient;emacs --daemon)
|
||||
alias picotik = picocom --b 115199 /dev/ttyUSB0
|
||||
alias nmap = ^nmap -T5 --min-parallelism 100 -Pn
|
||||
alias ed = emacs --daemon
|
||||
alias eledger = emacsclient -nw ~/Documents/Finanzen/Ledger/MyBudget.ledger
|
||||
alias sshconfig = emacsclient -nw ~/.ssh/config
|
||||
@@ -540,7 +539,7 @@ alias econfig = emacsclient -nw ~/.doom.d/init.el
|
||||
alias wttr = curl wttr.in/Essen
|
||||
alias tvres = xrandr --output HDMI1 --transform 1.02,0,-20,0,1.02,-10,0,0,1
|
||||
alias defaultres = xrandr --output HDMI1 --transform 1.00,0,0,0,1.00,0,0,0,1
|
||||
alias latexmk = latexmk -f -pdf -interaction=nonstopmode
|
||||
alias latexmk = ^latexmk -f -pdf -interaction=nonstopmode
|
||||
|
||||
# git
|
||||
alias gpa = git push soft --all
|
||||
@@ -552,6 +551,6 @@ alias gaa = git add --all
|
||||
alias gco = git checkout
|
||||
alias grv = git remote -v
|
||||
|
||||
let-env DOCKER_BUILDKIT = 1
|
||||
let-env DOCKER_BUILDKIT = 1 # Disable for podman
|
||||
source ~/.cache/starship/init.nu
|
||||
|
||||
|
||||
@@ -11,6 +11,13 @@ keybinds {
|
||||
bind "F8" {SwitchToMode "Resize"; }
|
||||
bind "F9" {SwitchToMode "Move"; }
|
||||
bind "F12" {SwitchToMode "Locked"; }
|
||||
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
||||
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
||||
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
|
||||
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
|
||||
bind "Alt =" "Alt +" { Resize "Increase"; }
|
||||
bind "Alt -" { Resize "Decrease"; }
|
||||
|
||||
}
|
||||
locked {
|
||||
bind "F12" { SwitchToMode "Normal"; }
|
||||
|
||||
@@ -9,7 +9,7 @@ t:/home/tuan/Templates
|
||||
w:/home/tuan/workspace_l/home_lab/wiki
|
||||
k:/home/tuan/.syncthing/Documents/Uni/Studium/2022_Sommersemester/Bachelorprojekt/Implement EFCF based on libAFL/git/foundry/evm/src/executor
|
||||
q:/home/tuan/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/04-5G_IANA/02-gps
|
||||
':/home/tuan/.syncthing/Documents/Uni/Studium
|
||||
':/home/tuan/Pictures/Wallpaper
|
||||
e:/home/tuan/Documents/CTF/TryHackMe/Ice/2_Recon
|
||||
s:/home/tuan/Pictures/Screenshots
|
||||
v:/home/tuan/.aya01/Documents/Arbeit/Uni-DuE_NCS_SHK/04_-_Projekte/06-Server_Setup/ansible
|
||||
|
||||
@@ -20,21 +20,19 @@ if $zellij_session_count == 0 {
|
||||
"Into Try"
|
||||
let user_input = ($user_input | into int);
|
||||
"Converted"
|
||||
if ($user_input < 0 or $user_input > $zellij_session_count - 1) {
|
||||
$"User Input: ($user_input)";
|
||||
$"Threshold: 0-($zellij_session_count - 0)";
|
||||
$"UserInput in Threshold? (0 < $user_input or $user_input < $zellij_session_count - 1)"
|
||||
if (0 < $user_input or $user_input < $zellij_session_count - 1) {
|
||||
"Valid Input"
|
||||
# Valid session
|
||||
let table_entry = ($zellij_session_table | select $user_input);
|
||||
zellij attach $table_entry;
|
||||
} else {
|
||||
"Invalid Input"
|
||||
# Invalid session
|
||||
# Create new one
|
||||
zellij;
|
||||
}
|
||||
} catch {
|
||||
"Catch"
|
||||
zellij;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user